alexa-pi / AlexaPiDEPRECATED

DEPRECATED - Use https://github.com/alexa-pi/AlexaPi instead ...Turn a Raspberry Pi into an Alexa Client
https://github.com/alexa-pi/AlexaPi
MIT License
587 stars 442 forks source link

alsaaudio.ALSAAudioError: Device or resource busy #136

Closed WillBishop closed 7 years ago

WillBishop commented 7 years ago
Recording...
Traceback (most recent call last):
  File "main.py", line 410, in <module>
    start()
  File "main.py", line 365, in start
    inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, device)
alsaaudio.ALSAAudioError: Device or resource busy

I know why this is happening, I am using my mic with another script.

Is there a way to use it with both?

renekliment commented 7 years ago

If you have multiple sound cards, you can set the input device in main.py to another. Another possibility would be to use PulseAudio, but I'm not sure it's tested.

renekliment commented 7 years ago

This project is now deprecated in favor of the new AlexaPi (https://github.com/alexa-pi/AlexaPi) which has all the features of this project and much more, such as:

Please switch over to the new project and if your issue persists there, file an issue in the new repo's issue tracker. Thank you.