The answer provided here worked for me
http://askubuntu.com/questions/130927/how-to-switch-default-sound-device-controlled-by-hardware-keys-in-xubuntu
Try the following line:
xfconf-query -c xfce4-mixer -p /active-card -s PlaybackBuiltinAudioAnalogStereoPulseAudioMixer