2001-08-07 12:28:24 +02:00
|
|
|
.TH APLAY 1 "2 August 2001"
|
1998-11-27 15:43:15 +01:00
|
|
|
.SH NAME
|
2001-08-07 12:28:24 +02:00
|
|
|
arecord, aplay \- command-line sound recorder and player for ALSA
|
|
|
|
soundcard driver
|
1998-11-27 15:43:15 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
|
|
|
[\fBarecord\fP | \fBaplay\fP ] [\fIflags\fP] filename
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBarecord\fP is a command-line soundfile recorder for the ALSA soundcard
|
|
|
|
driver. It supports several file formats and multiple soundcards with
|
|
|
|
multiple devices.
|
|
|
|
|
|
|
|
\fBaplay\fP 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.
|
|
|
|
|
|
|
|
.SH INVOKING
|
|
|
|
|
|
|
|
[\fBarecord\fP | \fBaplay\fP ] [\fIflags\fP] filename
|
|
|
|
|
|
|
|
.SS Options
|
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI--help\fP
|
1998-11-27 15:43:15 +01:00
|
|
|
Help: show syntax.
|
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI--version\fP
|
1998-11-27 15:43:15 +01:00
|
|
|
Print current version.
|
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-l, --list-devices\fP
|
|
|
|
List all soundcards and digital audio devices
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-L, --list-pcms\fP
|
|
|
|
List all PCMs defined
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-D, --device=NAME\fP
|
|
|
|
Select PCM by name
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-q --quiet\fP
|
1998-11-27 15:43:15 +01:00
|
|
|
Quiet mode. Suppress messages (not sound :))
|
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-t, --file-type TYPE\fP
|
|
|
|
File type (voc, wav, raw or au)
|
|
|
|
.TP
|
|
|
|
\fI-c, --channels=#\fP
|
|
|
|
The number of channels
|
|
|
|
.TP
|
|
|
|
\fI-f --format=FORMAT\fP
|
|
|
|
Sample format
|
|
|
|
.br
|
|
|
|
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 FLOAT64_BE IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW
|
|
|
|
A_LAW IMA_ADPCM MPEG GSM
|
|
|
|
.br
|
|
|
|
Some of these may not be available on selected hardware
|
|
|
|
.br
|
|
|
|
There are also two format shortcuts available:
|
|
|
|
.nf
|
|
|
|
-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]
|
|
|
|
.fi
|
|
|
|
.TP
|
|
|
|
\fI-r, --rate=#<Hz>\fP
|
|
|
|
Sampling rate in Hertz.
|
|
|
|
.TP
|
|
|
|
\fI-d, --duration=#\fP
|
|
|
|
Interrupt after # seconds
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-s, --sleep-min=#\fP
|
|
|
|
Min ticks to sleep
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-M, --mmap\fP
|
|
|
|
Mmap stream
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-N, --nonblock\fP
|
|
|
|
Nonblocking mode
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-F, --period-time=#\fP
|
|
|
|
Distance between interrupts is # microseconds
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-B, --buffer-time=#\fP
|
|
|
|
Buffer duration is # microseconds
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-A, --avail-min=#\fP
|
|
|
|
Min available space for wakeup is # microseconds
|
|
|
|
.TP
|
|
|
|
\fI-R, --start-delay=#\fP
|
|
|
|
Delay for automatic PCM start is # microseconds
|
|
|
|
(relative to buffer size if <= 0)
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-T, --stop-delay=#\fP
|
|
|
|
Delay for automatic PCM stop is # microseconds from xrun
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-v, --verbose\fP
|
|
|
|
Show PCM structure and setup
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
2001-08-07 12:28:24 +02:00
|
|
|
\fI-I, --separate-channels\fP
|
|
|
|
One file for each channel
|
1998-11-27 15:43:15 +01:00
|
|
|
.TP
|
|
|
|
|
|
|
|
.SS
|
|
|
|
Example:
|
|
|
|
|
|
|
|
.RS
|
2001-08-07 12:28:24 +02:00
|
|
|
\fBaplay -c 1 -t raw -r 22050 -f mu_law foobar\fR
|
1998-11-27 15:43:15 +01:00
|
|
|
|
|
|
|
.ID
|
|
|
|
will play the raw file "foobar" as a
|
2001-08-07 12:28:24 +02:00
|
|
|
22050-Hz, mono, 8-bit, Mu-Law .au file.
|
|
|
|
|
|
|
|
\fBarecord -d 10 -f cd -t wav -D copy foobar.wav\fP
|
|
|
|
|
|
|
|
will record foobar.wav as a 10-second, CD-quality wave file, using the
|
|
|
|
PCM "copy" (which might be defined in the user's .asoundrc file as:
|
|
|
|
.nf
|
|
|
|
pcm.copy {
|
|
|
|
type plug
|
|
|
|
slave {
|
|
|
|
pcm hw
|
|
|
|
}
|
|
|
|
route_policy copy
|
|
|
|
}
|
|
|
|
.fi
|
1998-11-27 15:43:15 +01:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
\fB
|
|
|
|
alsamixer(1),
|
|
|
|
amixer(1)
|
|
|
|
\fP
|
|
|
|
|
|
|
|
.SH BUGS
|
|
|
|
Note that .aiff files are not currently supported.
|
|
|
|
|
|
|
|
.SH AUTHOR
|
1999-05-12 00:18:49 +02:00
|
|
|
\fBarecord\fP and \fBaplay\fP are by Jaroslav Kysela <perex@suse.cz>
|
1998-11-27 15:43:15 +01:00
|
|
|
This document is by Paul Winkler <zarmzarm@erols.com>.
|
2001-08-07 12:28:24 +02:00
|
|
|
Updated for Alsa 0.9 by James Tappin <james@xena.uklinux.net>
|
1998-11-27 15:43:15 +01:00
|
|
|
|