|
From: Chris B. <ch...@cn...> - 2010-07-13 18:07:32
|
I do not think recording works on OSX... The hardware I developed
software on did not have a working recording device and I just took a
guess at how to do it.
Hopefully a programmer with access will eventually step in. For one
thing, we are not setting audio properties for correct channel #'s or
sample rate.
This may be confusing things... Maybe you'll get lucky if you first
run another recording application using correct sample size, rate, and
channels and the audio device may default to re-using those settings
when you run SoX.
Also, running "rec -V10 test.wav" may enable some debug messages that
are useful to isolating the problem.
AUDIODEV is currently not supported on OSX. That could also be part
of the problem if you have multiple recording devices.
Chris
On Tue, Jul 13, 2010 at 11:55 AM, bet hec han gey ouw ant toc
<six...@gm...> wrote:
>
> 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
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Sox-users mailing list
> Sox...@li...
> https://lists.sourceforge.net/lists/listinfo/sox-users
>
>
|