Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm using a raspberry pi to capture some audio, but I only want it to do it when the noise level goes above a certain level, and then the device will record until two seconds after it falls below that level again.

I have a python program, audioserver.py which starts and stops another program, arecord, from recording from the microphone input.

However, it appears that one program cannot have the audio device open while the other already does - is there a way I could overcome this problem and open my ALSA Microphone device more than once?

share|improve this question
    
I guess something like JACK (jackaudio.org) could do that, but that's not easy to set up , I believe. –  daniel kullmann Mar 8 at 18:33
add comment

1 Answer 1

The dsnoop plugin allows multiple clients to record from the same device.

In theory, the default device should already use this plugin. If not, record from the dsnoop device.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.