-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alsaaudio.ALSAAudioError: Device or resource busy #47
Comments
I'd try a |
Thanks for the swift response: this is mono-ised microphone stream, hence
Why would
My PCM sound configuration is as follows and I have verified that
|
If Do run:
These device names should work. |
The output from that is:
So I tried changing the device line to be exactly:
...but that didn't change the outcome. I also tried deliberately mis-spelling the device name, and that results in:
So the call to instantiate Any other clues as to what I might be doing wrong are welcomed, bearing in mind that I'm very new to Python and so may well have made some basic error. |
I had a similar problem and resolved it by executing the script with a normal (non root) user. |
is this reproducible with v0.9, using the new method to parameterize the pcm object? |
this was presumably fixed along with #63. |
First of all, thanks for your Python module, it is going to be very useful for me I think.
I have installed
alsaaudio
in order to perform PCM capture in Python (2.7.13) on my Raspbian Stretch-lite (4.9.59-v7) Raspberry Pi (B+). My problem is that I always getdevice or resource busy
as soon as I attempt to do anything with thealsaaudio.PCM
object I have created. I have verified that:arecord -Dmic_mono -r16000 -fS32_LE -twav -d10 -Vmono test.wav
...works and produces valid, audible, output.
PulseAudio
is not installed. What might I be doing wrong?Here's the Python script, based on your example:
...and this is the output:
Installation of
alsaaudio
was performed withpip
:pip install pyalsaaudio
Note that I am no Python expert, I'm a long-time embedded C programmer (so I also have a C version of the above that works on this Pi). I am trying to do something in Python for the first time, so lord knows what I'm doing wrong.
The text was updated successfully, but these errors were encountered: