Reference

aplay-0.5(1)

command-line sound recorder and player for ALSA soundcard driver

NAME

arecord, aplay - command-line sound recorder and player for ALSA soundcard driver

SYNOPSIS

[arecord | aplay ] [flags] filename

DESCRIPTION

arecord is a command-line soundfile recorder for the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices.

aplay is much the same, only it plays instead of recording. For supported soundfile formats, the sampling rate, bit depth, and so forth can be automatically determined from the soundfile header.

INVOKING

[arecord | aplay ] [flags] filename

Options

-h, --help

Help: show syntax.

-V, --version

Print current version.

-l

List all available soundcards and devices.

-c <card number>

Select the soundcard to use, if you have more than one. Cards are numbered from 0 (the default).

-d <device number>

Select the soundcard device to use, if your card has more than one. Devices are numbered from 0 (the default). Not to be confused with the soundcard mixer channels, which are sometimes also referred to as "devices", just to be annoying. Many soundcards will only have device 0. Some more complex cards may have mor. Try using -l and see what you get.

-q

Quiet mode. Suppress messages (not sound :))

-w

Use Wave soundfile format (.wav)

-r

Use raw soundfile format. Requires -s, -b, and -p flags?

-u

Use Sparc Audio soundfile format (.au)

-v

Use Voc soundfile format

-S

Soundfile is stereo. Mono is the default for headerless files.

-t <secs>

Time limit for recording, in seconds.

-s <Hz>

Sampling rate in Hertz.

-b <bits>

Bit depth (8 or 16 bits).

-m

Set to CD standard quality (44100 Hz, stereo, 16-bit linear).

-M <bits>

Set to DAT quality (48000 Hz, stereo, 16-bit linear).

-p <type>

Compression type (alaw, ulaw, adpcm).

Example:

aplay -c 1 -r -u -s 22050 -b 8 -p ulaw foobar

will play the raw file "foobar" as a 22050-Hz, mono, 8-bit, Mu-Law .au file, using the second soundcard.

arecord -t 10 -m -w foobar.wav

will record foobar.wav as a 10-second, CD-quality wave file.

SEE ALSO

alsamixer(1), amixer(1)

BUGS

Note that .aiff files are not currently supported.

AUTHOR

arecord and aplay are by Jaroslav Kysela <[email protected]> This document is by Paul Winkler <[email protected]>.