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

USB Microphone resource busy problem... #155

Closed peshko closed 7 years ago

peshko commented 7 years ago

I have seen multiple requests in that matter. I tried to update the config, etc. Still, I constantly get resource busy...

Traceback (most recent call last): File "/opt/AlexaPi/src/main.py", line 587, in loop() File "/opt/AlexaPi/src/main.py", line 505, in loop inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, config['sound']['input_device']) alsaaudio.ALSAAudioError: Device or resource busy [plughw:CARD=Device,DEV=0]

It works for a little bit, but then I get this error.

The output of arecord -l

card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 0/1 Subdevice #0: subdevice #0

Obviously, it tries to restart itself multiple times...Works for a bit and then kicks the error again...

If I stop the service I can record and hear my recordings.

Not sure why it happens.

Any help to solve this frustrating issue is appreciated

renekliment commented 7 years ago

Hey. You're at the wrong repo. Also, you probably have PulseAudio (and probably in user-session mode) running, that occupies your sound card.