AlexaPi icon indicating copy to clipboard operation
AlexaPi copied to clipboard

Audio output: DOCS and CONFIG

Open tinker3433 opened this issue 10 years ago • 6 comments

Hi, Solved my own issue as i was writing it up

I had no audiooutput, but i could tell from the LED that it was recording and playing back. Green and Red (I miss the Yellow for "transmitting) It also would give a Green LED if i just said "Alexa"

The issue was that i had a HDMI monitor connected to set up the WI-FI. which i found out, as i'm sure most of you guys know already, that that kills the Audio Jack output.

Might be worth a mention in the instructions for others that are like me and just starting out using Pi.

tinker3433 avatar Sep 23 '16 21:09 tinker3433

Hey. Thanks for the notice! We'll make a separate config options for playback and recording device and document it, so people can actually use sound over jack even when HDMI is connected.

renekliment avatar Sep 24 '16 09:09 renekliment

@tinker3433 yep I miss the transmitting or processing indication too, its top of my list to bring back in

sammachin avatar Sep 25 '16 09:09 sammachin

@tinker3433 So now you can also set the output device in config.yaml. Please test if you can set audio output to go through the analog, with HDMI connected.

renekliment avatar Oct 30 '16 16:10 renekliment

I've been trying, but can't get the audio to go out the 3.5mm jack with HDMI connected.

Here are two different setups I've tried setting output_device to, within config.yaml: "hw:CARD=ALSA,DEV=0" "hw:0,0" In either case, Alexa's "yes" still comes out of the HDMI source. I've tried changing the 0's to 1's and no difference. Has anyone else had any luck?

maso27 avatar Oct 30 '16 19:10 maso27

As a side note: I can make an external sound card work by changing output_device to "hw:2,0" just fine, so this is a good advancement. But I'm stumped on getting the jack to work when HDMI is connected.

maso27 avatar Oct 30 '16 19:10 maso27

I can only get analog audio to play with HDMI connected by using force_audio 0. mpg123 can use the -o flag to output audio to HDMI or analog with 1 or 0 respectively. Someone a bit more familiar with the code may be able to make this work programatically, as it does seem possible to play analog sound with HDMI connected.

ShawnHarte avatar Oct 30 '16 23:10 ShawnHarte