On Thu, 21 Dec 2000, Carel Fellinger wrote:

> On Thu, Dec 21, 2000 at 02:27:08AM +0100, Kai Weber wrote:
> > Hi,
> >
> > I am searching for a good sound record program, which can be used from a
> > script/started by a cron job. I tested 'rec' coming from the sox
> > package. With for CD-quality suitable settings "rec -c 2 -r 44100 -s w
> > new.wav" I get gaps in my samples. I have to record more than one hour
> > without any gaps. Is there a reliable tool which I should try?
>
> You could try the package bplay. It uses (large) buffers for playing
> and for recording. According to its docs it should fit the bill, never
> tried it myself though.

The gaps you are getting in sox are due to poor (actually nonexistent)
buffering.  bplay is buggy (the options don't work as documented) and
unmaintainted upstream.  I think my program rawrec may be the best thing
for you.  If you install the rawrec package from woody (it installs fine
on potato), you can just do 'rawrec -t secs soundfile.raw' to record CD
quality raw sound (the default), options for other sampling rates,
channels, etc. exist.  If you want it in, for example wav format, you can
get sox as well and do something like:

     rawrec -t secs | sox -t sw -r 44100 -c 2 - soundfile.wav


good luck,
Britton

Reply via email to