arecord, aplay − command-line sound recorder and player for ALSA soundcard driver
arecord [flags] [filename]
aplay [flags] [filename [filename]] ...
arecord is a command-line soundfile recorder for the ALSA soundcard driver. It supports several file for-
mats and multiple soundcards with multiple devices. If recording with interleaved mode samples the file is
automatically split before the 2GB filesize.
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.
If filename is not specified, the standard output or input is used. The aplay utility accepts multiple file-
Help: show syntax.
Print current version.
List all soundcards and digital audio devices
List all PCMs defined
Select PCM by name
Quiet mode. Suppress messages (not sound :))
−t, −−file−type TYPE
File type (voc, wav, raw or au). If this parameter is omitted the WAVE format is used.
The number of channels. The default is one channel.
Recognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE
U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE
IEC958_SUBFRAME_BE MU_LAW A_LAW
IMA_ADPCM MPEG GSM
Some of these may not be available on selected hardware
There are also two format shortcuts available:
−f cd (16 bit little endian, 44100, stereo [−f S16_LE −c2 −r44100]
−f dat (16 bit little endian, 48000, stereo) [−f S16_LE −c2 −r48000]
If no format is given U8 is used.
Sampling rate in Hertz. The default rate is 8000 Hertz.
2 August 2001
Interrupt after # seconds. A value of zero means infinity. The default is zero, so if this option is
omitted then the arecord process will run until it is killed.