How do I change the audio output device from the command line in Raspbian?

Viewed 862

I am trying to change output device from AV Jack to the bluetooth speaker. I can do that in GUI as attached in the picture but can't understand how to do the equivalent thing from the terminal. I tried using amixer but none of the commands seemed to do what I intended to.

Changing sound device from AV Jack to Tronsmart

1 Answers

I've found this to work, type this into the terminal:

sudo amixer cset numid=3 n

where n is 0=auto, 1=headphones, 2=hdmi.

Im not sure if this is what you mean but I hope it works.

Related