Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
Play sound files using the ALSA sound system. The related arecord records sound files.
Options
-h
Print help message, then exit.
--version
Print version and quit.
-l,--list-devices
List available sound cards and digital audio devices.
-L,--list-pcms
List all PCM (pulse-coded modulation, or digital audio) devices that have been defined. PCMs may be defined in the .asoundrc file.
-D,--device=devicename
Select a PCM device by name.
-q
Do not display messages.
-t,--file-type=type
Name the file type used. Files may be voc, wav, raw, or au.
-c,--channels=n
Use n channels: 1 for mono, 2 for stereo.
-f,--format=format
Specify the sample format. The sample formats available will depend on hardware. For CD and DAT output, use the cd and dat shortcuts, which set the sample rate, format, and channel numbers all at once.
-r,--rate=n
Set the sample rate in Hertz.
-d,--duration=n
Set an interrupt for n seconds after playback begins.