aplay
aplay is a command-line audio file player for the ALSA sound card driver. It supports several file formats and multiple sound cards with multiple devices. For supported soundfile formats, the sampling rate, bit depth, and so forth can be automatically determined from the soundfile header.
Example
aplay -c 1 -t raw -r 22050 -f mu_law foobar
Will play the raw file "foobar" as a 22050-Hz, mono, 8-bit, mu-law .au file.
Trivia
The ALSA command-line utility arecord is in fact just a symlink to aplay. The aplay binary checks internally whether the name used for invoking the binary (argv[0] in C) is either "aplay" or "arecord".
External links
: Sound recorder/player for ALSA – Linux User Commands Manual
This article is issued from Wikipedia - version of the Friday, January 08, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.