arecord
Record audio from ALSA sound devices
TLDR
SYNOPSIS
arecord [-d duration] [-f format] [-r rate] [-c channels] [file]
DESCRIPTION
arecord is a command-line sound recorder for ALSA soundcard drivers. It captures audio from sound cards and saves it in various formats including WAV, AU, VOC, and raw audio. The tool supports configurable sample rates, bit depths, and channel counts. The shorthand format cd sets 16-bit signed little-endian stereo at 44100 Hz. Raw output can be piped to encoders like lame for MP3 conversion. It is the recording counterpart to aplay.
PARAMETERS
-d, --duration seconds
Stop recording after the specified number of seconds-f, --format format
Sample format (cd, S16_LE, U8, etc.)-r, --rate rate
Sampling rate in Hz-c, --channels count
Number of channels (1 for mono, 2 for stereo)-t, --file-type type
File type (wav, raw, au, voc)-l, --list-devices
List all available recording devices-L, --list-pcms
List all PCM devices-D, --device name
Select PCM device by name-i, --interactive
Allow interactive control (space/enter to pause/resume)-v, --verbose
Verbose mode; use -vv for more verbosity-q, --quiet
Quiet mode; suppress messages
CAVEATS
Requires ALSA drivers to be installed and configured. The cd format is shorthand for 16-bit signed little-endian, 44100 Hz, stereo.
HISTORY
Part of ALSA (Advanced Linux Sound Architecture) utilities package, which replaced OSS as the standard Linux sound system.

