Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

audiorecord does not work

1 view
Skip to first unread message

Volker Wolfram

unread,
Feb 19, 2008, 1:21:27 AM2/19/08
to

Hello,

the following message comes on the screen with NetBSD 4.0:
audiorecord -d /dev/audio0 -e linear -P 16 -p mic -s 44100 -t 3000 -v 240 -c >
audiorecord: read failed: Invalid argument

Can anyone give me an hint to avoid my mistakes?

Volker

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Leonardo Taccari

unread,
Feb 22, 2008, 6:22:03 PM2/22/08
to
Hello Volker,

On Tue, Feb 19, 2008 at 07:21:27AM +0100, Volker Wolfram wrote:
> the following message comes on the screen with NetBSD 4.0:
> audiorecord -d /dev/audio0 -e linear -P 16 -p mic -s 44100 -t 3000 -v 240 -c >
> audiorecord: read failed: Invalid argument

The ``>'' stands for redirection operator or is it the PS2 shell's
variable?

> Can anyone give me an hint to avoid my mistakes?

Yes, I'll try to do this, the options and arguments are right, but the
``>'', if it is PS2, isn't right, the last argument should be a
file. And ``-c'' want the number of channels (IIRC 1 for mono and 2 for
stereo).

So for example we can type something like this:

$ audiorecord -d /dev/audio0 -e linear -P 16 -p mic -s 44100 -t 3000 -v 240 -c 2 file

I tested it on my NetBSD 4.0 box, and it worked perfectly (after I
recorded my voice I checked it via audioplay(1)).


Good luck Volker and HTH!


Ciao, Leonardo
--
Leonardo Taccari (leot) | http://leot.netsons.org/

0 new messages