Unable to make sound play in headset

Solution 1:

To make an external device available as audio sink and to switch to a playing stream on plugging in we may need to add the following to our /etc/pulse/default.pa (for pulseaudio >= 1.0):

load-module module-switch-on-connect

This needs a restart of the pulseaudio server to take effect. If daemonized to auto-spawn (this is the default) we can easily perform this with the following command:

pulseaudio -k