|
From: bet h. h. g. o. a. t. <six...@gm...> - 2010-07-13 16:56:08
|
working on a script to record short snippets of audio every once in a while
and then combine.
can't seem to get the recording working on the mac. maybe i have to
correctly point it to the right audio source. i see something about setting
AUDIODEV in the man pages but not sure how to get to this on a mac. any
tips?
<code>
while [ 1 ]
do
let "counter=counter+1"
echo $counter
sox -d -c 2 snip${counter:1}.wav trim 0 5
sleep 10
done
</code>
<output>
10001
Input File : 'default' (coreaudio)
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Sample Encoding: 16-bit Signed Integer PCM
In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ]
Clip:0
Done.
10002
...
</output>
and all the wav files are empty.
related: a previous timelapse audio script for processing already recorded
files is here:
http://plainfront.wordpress.com/2010/01/16/experiments-with-timelapse-and-audio/
thanks,
dan
|