📄 aplay.1
字号:
.TH APLAY 1 "2 August 2001".SH NAMEarecord, aplay \- command-line sound recorder and player for ALSA soundcard driver.SH SYNOPSIS\fBarecord\fP [\fIflags\fP] [filename].br\fBaplay\fP [\fIflags\fP] [filename [filename]] ....SH DESCRIPTION\fBarecord\fP is a command-line soundfile recorder for the ALSA soundcarddriver. It supports several file formats and multiple soundcards withmultiple devices. If recording with interleaved mode samples the file isautomatically split before the 2GB filesize.\fBaplay\fP is much the same, only it plays instead of recording. Forsupported soundfile formats, the sampling rate, bit depth, and soforth can be automatically determined from the soundfile header.If filename is not specified, the standard output or input is used. The \fBaplay\fP utility accepts multiple filenames..SH OPTIONS.TP\fI\-h, \-\-help\fPHelp: show syntax..TP\fI\-\-version\fPPrint current version..TP\fI\-l, \-\-list\-devices\fPList all soundcards and digital audio devices.TP\fI\-L, \-\-list\-pcms\fPList all PCMs defined.TP\fI\-D, \-\-device=NAME\fPSelect PCM by name.TP\fI\-q \-\-quiet\fPQuiet mode. Suppress messages (not sound :)).TP\fI\-t, \-\-file\-type TYPE\fPFile type (voc, wav, raw or au).If this parameter is omitted the WAVE format is used..TP\fI\-c, \-\-channels=#\fPThe number of channels.The default is one channel..TP\fI\-f \-\-format=FORMAT\fPSample format.brRecognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LES24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BEFLOAT64_LE FLOAT64_BE IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAWA_LAW IMA_ADPCM MPEG GSM.brSome of these may not be available on selected hardware.brThere 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].fiIf no format is given U8 is used..TP\fI\-r, \-\-rate=#<Hz>\fPSampling rate in Hertz. The default rate is 8000 Hertz..TP\fI\-d, \-\-duration=#\fPInterrupt after # seconds.A value of zero means infinity.The default is zero, so if this option is omitted then the arecord process will run until it is killed..TP\fI\-s, \-\-sleep\-min=#\fPMin ticks to sleep. The default is not to sleep..TP\fI\-M, \-\-mmap\fP Use memory-mapped (mmap) I/O mode for the audio stream.If this option is not set, the read/write I/O mode will be used..TP\fI\-N, \-\-nonblock\fP Open the audio device in non-blocking mode. If the device is busy the program will exit immediately.If this option is not set the program will block until the audio device is available again..TP\fI\-F, \-\-period\-time=#\fP Distance between interrupts is # microseconds.If no period time and no period size is given then a quarter of the buffer time is set..TP\fI\-B, \-\-buffer\-time=#\fP Buffer duration is # microsecondsIf no buffer time and no buffer size is given then the maximal allowed buffer time but not more than 500ms is set..TP\fI\-\-period\-size=#\fP Distance between interrupts is # framesIf no period size and no period time is given then a quarter of the buffer size is set..TP\fI\-\-buffer\-size=#\fP Buffer duration is # framesIf no buffer time and no buffer size is given then the maximal allowed buffer time but not more than 500ms is set..TP\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).TP\fI\-T, \-\-stop\-delay=#\fP Delay for automatic PCM stop is # microseconds from xrun.TP\fI\-v, \-\-verbose\fP Show PCM structure and setup.This option is accumulative. The VU meter is displayed when thisis given twice or three times..TP\fI\-V, \-\-vumeter=TYPE\fPSpecifies the VU-meter type, either \fIstereo\fP or \fImono\fP.The stereo VU-meter is available only for 2-channel stereo sampleswith interleaved format..TP\fI\-I, \-\-separate\-channels\fP One file for each channel.SSExample:.TP\fBaplay \-c 1 \-t raw \-r 22050 \-f mu_law foobar\fRwill play the raw file "foobar" as a22050-Hz, mono, 8-bit, Mu-Law .au file. .TP\fBarecord \-d 10 \-f cd \-t wav \-D copy foobar.wav\fPwill record foobar.wav as a 10-second, CD-quality wave file, using thePCM "copy" (which might be defined in the user's .asoundrc file as:.nfpcm.copy { type plug slave { pcm hw } route_policy copy}.fi.SH SEE ALSO\fBalsamixer(1),amixer(1)\fP.SH BUGS Note that .aiff files are not currently supported..SH AUTHOR\fBarecord\fP and \fBaplay\fP are by Jaroslav Kysela <perex@perex.cz>This document is by Paul Winkler <zarmzarm@erols.com>.Updated for Alsa 0.9 by James Tappin <james@xena.uklinux.net>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -