AUDIOREC(1)

NAME
audiorec - record raw audio streams from audio(4) to file

SYNOPSIS
audiorec [-lv] [-c channels] [-e encoding] [-f file] [-o output] [-p pidfile] [-r rate]

DESCRIPTION
The audiorec program reads raw audio data from audio(4) device file and writes it to output. audiorec will run until it receives a SIGINT. By default, file is /dev/audio. If the -l option is not used, and output is not specified, audiorec will exit with an error.

The options are as follows:

-c channels
    Set the number of channels to record to channels. Valid arguments are “1” and “2”. The default is “2”.

-e encoding
    Set the bit-depth and encoding format. Supported encodings can be viewed with the -l option. The default is “slinear_le”.

-f file
    Alternative audio(4) device to read from.

-l  List the encodings supported by file. The values in the ‘name’ column are used with the -e option. The ‘bits per sample’ columns represents the number of bits per sample the format uses.

-o output
    Write raw audio data to output.

-p pidfile
    Write process ID to pidfile.

-r rate
    Set the sample rate of file to rate samples per second. Valid arguments are integer values from 0 to 96000, but specifying a sample rate not supported by the hardware and/or driver will return an error. The default is “48000”.

-v  Increments level of informational output. All messages are output to standard error. Multiple instances of this option are allowed.

EXAMPLES
The command

    $ audiorec -c 2 -e 4 -r 44100 -o out.pcm

reads stereo 16 bit signed linear 44.1 kHz audio data from /dev/audio and writes it to the file “out.pcm”. Recording continues until audiorec receives a SIGINT, such as by pressing Ctl-C.

SEE ALSO
audio(4)

AUTHORS
audiorec and this manual page were written by Jacob Meuser <jakemsr@jakemsr.com>.