Leo
Leo

Reputation: 31

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

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

Upvotes: 1

Views: 2438

Answers (2)

Technigator
Technigator

Reputation: 1

I'm interested to know the answer to this too.

@Thomas's answer does not directly answer OP's question. That solution as stated in his answer, is for headphones and hdmi only.

OP is asking about setting the audio source output to Bluetooth Speaker via Command line.

I have tried many ways but to no avail. Unfortunately, it looks like there is no solution to setting via command line, except through desktop menu GUI, I think.

Upvotes: -1

Thomas
Thomas

Reputation: 11

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.

Upvotes: 1

Related Questions