Blame speaker-test/speaker-test.1

Packit Service a9274b
.\" -*- nroff -*-
Packit Service a9274b
.\" macros
Packit Service a9274b
.de EX \" Begin Example
Packit Service a9274b
.  IP
Packit Service a9274b
.  ft CW
Packit Service a9274b
.  nf
Packit Service a9274b
.  ne \\$1
Packit Service a9274b
..
Packit Service a9274b
.de EE \" End Example
Packit Service a9274b
.  ft P
Packit Service a9274b
.  fi
Packit Service a9274b
.  PP
Packit Service a9274b
..
Packit Service a9274b
.TH SPEAKER\-TEST 1 "April 2nd, 2011" speaker\-test
Packit Service a9274b
.SH NAME
Packit Service a9274b
speaker\-test \- command\-line speaker test tone generator for ALSA
Packit Service a9274b
.SH SYNOPSIS
Packit Service a9274b
.B speaker\-test [\-options]
Packit Service a9274b
Packit Service a9274b
.SH DESCRIPTION
Packit Service a9274b
\fBspeaker\-test\fP generates a tone that can be used to test the speakers of a computer.
Packit Service a9274b
Packit Service a9274b
\fBspeaker\-test\fP by default will test the \fIdefault\fP device. If you
Packit Service a9274b
want to test another sound device you will have first to get a list of
Packit Service a9274b
all of the sound cards in your system and the devices associated with
Packit Service a9274b
those cards. Notice that there might be for example, one device for
Packit Service a9274b
analog sound, one for digital sound and one for HDMI sound.
Packit Service a9274b
To get the list of available cards and devices you can run \fBaplay \-L\fR.
Packit Service a9274b
Packit Service a9274b
.P \fBaplay\fR's output will be similar to this one:
Packit Service a9274b
Packit Service a9274b
.nf
Packit Service a9274b
$ aplay \-L
Packit Service a9274b
null
Packit Service a9274b
    Discard all samples (playback) or generate zero samples (capture)
Packit Service a9274b
default:CARD=ICH5
Packit Service a9274b
    Intel ICH5, Intel ICH5
Packit Service a9274b
    Default Audio Device
Packit Service a9274b
front:CARD=ICH5,DEV=0
Packit Service a9274b
    Intel ICH5, Intel ICH5
Packit Service a9274b
    Front speakers
Packit Service a9274b
surround40:CARD=ICH5,DEV=0
Packit Service a9274b
    Intel ICH5, Intel ICH5
Packit Service a9274b
    4.0 Surround output to Front and Rear speakers
Packit Service a9274b
(...)
Packit Service a9274b
.fi
Packit Service a9274b
Packit Service a9274b
.P Each of the devices is listed in the beginning of the definition so,
Packit Service a9274b
in the above example, there are four devices listed: null, default, front
Packit Service a9274b
and surround40. So, if you want to test the last device you can
Packit Service a9274b
run \fBspeaker\-test \-Dsurround40:ICH5 \-c 6\fR. The \fB\-c\fR option will
Packit Service a9274b
indicate that the six audio channels in the device have to be tested.
Packit Service a9274b
Packit Service a9274b
Packit Service a9274b
Packit Service a9274b
Packit Service a9274b
Packit Service a9274b
.SH OPTIONS
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-c\fP | \fB\-\-channels\fP \fINUM\fP
Packit Service a9274b
\fINUM\fP channels in stream
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-D\fP | \fB\-\-device\fP \fINAME\fP
Packit Service a9274b
PCM device name \fINAME\fP
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-f\fP | \fB\-\-frequency\fP \fIFREQ\fP
Packit Service a9274b
sine wave of \fIFREQ\fP Hz
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-\-help\fP
Packit Service a9274b
Print usage help
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-b\fP | \fB\-\-buffer\fP \fITIME\fP
Packit Service a9274b
Use buffer size of \fITIME\fP microseconds.
Packit Service a9274b
When 0 is given, use the maximal buffer size.
Packit Service a9274b
The default value is 0.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-p\fP | \fB\-\-period\fP \fITIME\fP
Packit Service a9274b
Use period size of \fITIME\fP microseconds.
Packit Service a9274b
When 0 is given, the periods given by \fB\-P\fP option is used.
Packit Service a9274b
The default value is 0.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-P\fP | \fB\-\-nperiods\fP \fIPERIODS\fP
Packit Service a9274b
Use number of periods.  The default value is 4.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-r\fP | \fB\-\-rate\fP \fIRATE\fP
Packit Service a9274b
stream of \fIRATE\fP Hz
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-t\fP | \fB\-\-test\fP \fBpink\fP|\fBsine\fP|\fBwav\fP
Packit Service a9274b
\fB\-t pink\fP means use pink noise (default).
Packit Service a9274b
Packit Service a9274b
Pink noise is perceptually uniform noise -- that is, it sounds like every frequency at once.  If you can hear any tone it may indicate resonances in your speaker system or room.
Packit Service a9274b
Packit Service a9274b
\fB\-t sine\fP means to use sine wave.
Packit Service a9274b
Packit Service a9274b
\fB\-t wav\fP means to play WAV files, either pre-defined files or given via \fB\-w\fP option.
Packit Service a9274b
Packit Service a9274b
You can pass the number from 1 to 3 as a backward compatibility.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-l\fP | \fB\-\-nloops\fP \fICOUNT\fP
Packit Service a9274b
Packit Service a9274b
Specifies the number of loops.  Zero means to run infinitely.
Packit Service a9274b
Packit Service a9274b
When \fB\-s\fP option below with a valid channel is given, \fBspeaker\-test\fP will perform
Packit Service a9274b
always a single-shot without looping.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-s\fP | \fB\-\-speaker\fP \fICHANNEL\fP
Packit Service a9274b
Do a single-shot speaker test for the given channel.  The channel number starts from 1.
Packit Service a9274b
The channel number corresponds to left, right, rear-left, rear-right, center, LFE,
Packit Service a9274b
side-left, side-right, and so on.
Packit Service a9274b
Packit Service a9274b
For example, when 1 is passed, it tests the left channel only once rather than both channels
Packit Service a9274b
with looping.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-w\fP | \fB\-\-wavfile\fP \fIFILE\fP
Packit Service a9274b
Use the given WAV file for the playback instead of pre-defined WAV files.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-W\fP | \fB\-\-wavdir\fP \fIDIRECTORY\fP
Packit Service a9274b
Specify the directory containing WAV files for playback.
Packit Service a9274b
The default path is \fI/usr/share/sounds/alsa\fP.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-m\fP | \fB\-\-chmap\fP \fIMAP\fP
Packit Service a9274b
Pass the channel map to override.
Packit Service a9274b
If the playback in a specific channel order or channel positions is
Packit Service a9274b
required, pass the channel position strings to this option.
Packit Service a9274b
Packit Service a9274b
.TP
Packit Service a9274b
\fB\-X\fP | \fB\-\-force-frequency\fP
Packit Service a9274b
Allow supplied \fIFREQ\fP to be outside the default range of 30-8000Hz. A minimum of 1Hz is still enforced.
Packit Service a9274b
Packit Service a9274b
.SH USAGE EXAMPLES
Packit Service a9274b
Packit Service a9274b
Produce stereo sound from one stereo jack:
Packit Service a9274b
.EX
Packit Service a9274b
  speaker\-test \-Dplug:front \-c2
Packit Service a9274b
.EE
Packit Service a9274b
Packit Service a9274b
Produce 4 speaker sound from two stereo jacks:
Packit Service a9274b
.EX
Packit Service a9274b
  speaker\-test \-Dplug:surround40 \-c4
Packit Service a9274b
.EE
Packit Service a9274b
Packit Service a9274b
Produce 5.1 speaker sound from three stereo jacks:
Packit Service a9274b
.EX
Packit Service a9274b
  speaker\-test \-Dplug:surround51 \-c6
Packit Service a9274b
.EE
Packit Service a9274b
Packit Service a9274b
To send a nice low 75Hz tone to the Woofer and then exit without touching any other speakers:
Packit Service a9274b
.EX
Packit Service a9274b
  speaker\-test \-Dplug:surround51 \-c6 \-s1 \-f75
Packit Service a9274b
.EE
Packit Service a9274b
Packit Service a9274b
To do a 2\-speaker test using the spdif (coax or optical) output:
Packit Service a9274b
.EX
Packit Service a9274b
  speaker\-test \-Dplug:spdif \-c2
Packit Service a9274b
.EE
Packit Service a9274b
Packit Service a9274b
Play in the order of front\-right and front-left from the front PCM
Packit Service a9274b
.EX
Packit Service a9274b
  speaker\-test \-Dplug:front \-c2 \-mFR,FL
Packit Service a9274b
.EE
Packit Service a9274b
Packit Service a9274b
.SH SEE ALSO
Packit Service a9274b
.BR aplay(1)
Packit Service a9274b
Packit Service a9274b
.SH AUTHOR
Packit Service a9274b
The speaker\-test program was written by James Courtier-Dutton.
Packit Service a9274b
Pink noise support was added by Nathan Hurst.
Packit Service a9274b
Further extensions by Takashi Iwai.