Discussion:
audiorecord does not work
(too old to reply)
Volker Wolfram
2008-02-19 06:22:05 UTC
Permalink
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
Leonardo Taccari
2008-02-22 23:12:12 UTC
Permalink
Hello Volker,
Post by Volker Wolfram
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?
Post by Volker Wolfram
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/
Loading...