Subject: Re: Audio recording.
To: Jeremy C. Reed <reed@reedmedia.net>
From: Richard Rauch <rkr@olib.org>
List: netbsd-help
Date: 10/07/2004 13:04:16
On Thu, Oct 07, 2004 at 10:02:02AM -0700, Jeremy C. Reed wrote:
> > Any suggestions?  I've had problems recording, and the problems
> > have been persistant over the years.  Is it just that the audio
> > record capabilities are very rarely used by anyone?
> 
> I have recorded audio several times using a microphone plugged into my
> sound card on two (or more) NetBSD/i386 systems (various 1.5.x and 1.6.x
> versions). It has seemed to work fine.
> 
> My son has used it a lot to record singing and talking by using xwave (I
> think).
> 
> My own system has:
> 
> eap0 at pci0 dev 11 function 0: Ensoniq AudioPCI (rev. 0x01)
> eap0: interrupting at irq 5
> audio0 at eap0: full duplex, mmap, independent
> midi0 at eap0: AudioPCI MIDI UART
> 
> Have you played around with audioctl to make sure the record.* controls
> are fine?

I fiddled with them some, but of course audiorecord (for example) keeps
resetting them.  (I had tried this somewhat earlier.)

The default mulaw encoding seems to be a big part of the proble.  The
recording seems to get taken in as buzzes, as if only 1 bit per sample
were supported.

Using audiorecord, I found these options produced nice results:

    audiorecord -c 1 -e slinear_le -P 16 -s 48000 -F wav

...I have not tried varying the parameters further.  (The 48kHz
sample rate is not terribly important, but disk space is cheap
and I'm just fooling around.  (^&)


It seems that the default audiorecord parameters (and/or audio device)
parameters should be such that just doing an "audiorecord" with little
more than a file format (perhaps) and an output filename should stream
usable audio to the file.

Oh well, at least it's working.  (^&

Thanks for the tip.

-- 
  "I probably don't know what I'm talking about."  http://www.olib.org/~rkr/