Re: [linux-audio-user] VAR/VOR audio recording

From: Frank Barknecht <fbar@email-addr-hidden>
Date: Wed Aug 03 2005 - 02:28:45 EEST

Hallo,
lucas hat gesagt: // lucas wrote:

> i would like a linux daemon that is always running and always listening
> to the microphone input of the soundcard and create a new file and
> record into that audio file when there is sound coming through the
> input. and say after a certain number of minutes of silence or so, it
> will end the recording and keep listening. then when sound comes across
> again, it will begin recording in a new file.

Attached Pd patch does this with recording to ogg. You need the
oggwrite~ external for this or change the patch to record to .wav
files as hinted inside the patch. Of course you need Pd (Pure Data)
installed but it's part of every decent distribution.

The idea is as follows: The level of the audio input (adc~) is watched
all the time using an envelope follower (env~). This normally goes
from about 0 to 100. As soon as it goes over a trigger level of 50, a
new ogg file is opened having a name like 1217-everything.ogg, where
1217 is the time in seconds passed since you opened the patch. As soon
as the level goes below 50 recording is stopped and a new file is
opened.

The patch is just an example to maybe get you started, it could be
improved in various ways, for example by using a delay buffer like in
Steve's timemachine to also record the past, or by using a better
trigger detection.

Ciao

-- 
 Frank Barknecht                               _ ______footils.org__
             
          _ __latest track: "plak" @ http://footils.org/cms/show/44

Received on Wed Aug 3 04:15:07 2005

This archive was generated by hypermail 2.1.8 : Wed Aug 03 2005 - 04:15:07 EEST