question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

alsaaudio.ALSAAudioError: Device or resource busy [plughw:1]

See original GitHub issue

i am using a usb sound card and there is something make the mic busy and kind of listening to nothing

thats what i got in debugging mode

pi@raspberrypi:~ $ /opt/AlexaPi/src/main.py -d Checking Internet Connection... Connection OK Play_Audio Request for: /opt/AlexaPi/src/resources/hello.mp3 Player State: State.Opening Player State: State.Playing Player State: State.Ended Traceback (most recent call last): File "/opt/AlexaPi/src/main.py", line 595, in <module> loop() File "/opt/AlexaPi/src/main.py", line 510, in loop inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, config['sound']['input_device']) alsaaudio.ALSAAudioError: Device or resource busy [plughw:1]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:33 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
maso27commented, Nov 9, 2016

@mohaggag I’m really sorry you’re having so much trouble. It’s got to be frustrating. One thing we keep having trouble with is when pulseaudio is installed on the system. Which is something that is automatic on the full desktop versions of raspbian.

If you aren’t planning on using the desktop on your pi at all, can I suggest that you try using raspbian lite instead of pixel?

The plan is to be able to support other audio engines down the road, which will hopefully have less trouble with pulseaudio. But for now this seems to be the most foolproof solution.

1reaction
illperipheralscommented, Nov 8, 2016

Have you verified your levels and auto-gain in alsamixer? This does not sound like a software issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

alsaaudio.ALSAAudioError: Device or resource busy · Issue #47
I have installed alsaaudio in order to perform PCM capture in Python ... ALSAAudioError: Device or resource busy [mic_mono] alsaaudio.
Read more >
[SOLVED] ALSA: device or resource is busy / Multimedia and ...
[SOLVED] ALSA: device or resource is busy ... Hi, I can't get media players to play audio through 1 of soundcards: There's 2...
Read more >
PureData: "ALSA output error Device or resource busy"
Hi guys, I am trying to get Pure Data working on my Raspberry Pi (Model B) with no success so far. I am...
Read more >
pyalsaaudio - Bountysource
My problem is that I always get device or resource busy as soon as I attempt to do anything with the alsaaudio.PCM object...
Read more >
ALSA works, but PulseAudio gives "Error opening PCM device"
I: [pulseaudio] alsa-util.c: Error opening PCM device plughw:1: Device or resource busy. E: [pulseaudio] module.c: Failed to load module ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found