Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 18:33

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

Your Answer


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.