alexa-pi / AlexaPi

Alexa client for all your devices! # No active development. PRs welcome # consider https://github.com/respeaker/avs instead
MIT License
1.33k stars 396 forks source link

Crash: alsaaudio..Device or resource busy [plughw:1] #58

Closed irthomasthomas closed 8 years ago

irthomasthomas commented 8 years ago

Just tried the latest version on a pc running ubuntu 14.04. It says hello before exiting with the following message: line 498.. inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, config['sound']['device']) alsaaudio.ALSAAudioError: Device or resource busy [plughw:1]

CEOGavin commented 8 years ago

Are you certain about Card 1 (or is it Card 0, in which case it will be plughw:0 in your config file.

Also, exit GUI and try again in command prompt.

irthomasthomas commented 8 years ago

Thanks, I am running this in a terminal already. Am I supposed to configure the audio stream somewhere?

CEOGavin commented 8 years ago

sudo nano /etc/opt/AlexaPi/config.yaml

irthomasthomas commented 8 years ago

ok I set it to "default" and it works nicely now. Cheers.