MAN sezione 1 - Torna all'indice
MAN PAGE: APLAY(1)Contents
arecord, aplay - command-line sound recorder and player
for ALSA soundcard driver
[arecord | aplay ] [flags] filename
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 record
ing. For supported soundfile formats, the sampling rate,
bit depth, and so forth can be automatically determined
from the soundfile header.
[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 sound
cards 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 head
erless 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 lin
ear).
-p <type>
Compression type (alaw, ulaw, adpcm).
Example:
aplay -c 2 -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.
alsamixer(1), amixer(1)
Note that .aiff files are not currently supported.
arecord and aplay are by Jaroslav Kysela <perex@suse.cz>
This document is by Paul Winkler <zarmzarm@erols.com>.
25 Nov 1998 3
25 Nov 1998 3 |