matrix-io / google-assistant-matrixio

google-assistant-matrixio example
7 stars 3 forks source link

audio open error: Device or resource busy #1

Open ntpincus opened 6 years ago

ntpincus commented 6 years ago

when running this command:

arecord --duration 5 --rate 16000 --format S16_LE test.wav && aplay ./test.wav

I get the following error:

arecord: main:788: audio open error: Device or resource busy

It's interesting that you aren't specifying the --device flag, what would it be in this case? I'm used to seeing "mic_channel1" or another channel. I also ran

sudo pkill -9 malos

To make sure that wasn't the cause. Any help would be greatly appreciated

kdpatino commented 6 years ago

Hello @ntpincus Did you follow the steps in the README. You need to use the kernel modules instead of MALOS approach.

Let me know if you have any doubt or trouble. I could help you to set up this demo :smile:

Best Regards,

Kevin Patino

BebeGene commented 5 years ago

Hello @kdpatino !

I am also having the same issue. I installed it according to the readme file using kernel modules.

I attached the Matrix Voice microphone system and ran the odaslive app for that (works). I am trying to connect the Odas Studio on a personal computer and connect via IP addresses.

This was the code I ran when I received same error:

~/odas/bin/odaslive -vc ~/odas/config/odaslive/matrix_voice.cfg

Any experience with this? Or insight?

Thank you.

JahirMorenoA commented 5 years ago

I had the same problem but with aplay, I just run sudo killall -9 aplay I think may work with arecord instead.

digvijayT commented 3 years ago

sudo killall -9 arecord works.

my device is listening. Then I stopped the recording. And if I again wish to record, it was shoowing this error: arecord: main:828: audio open error: Device or resource busy

So the above command worked fine.