3 .de EX \" Begin Example
14 .TH SPEAKER\-TEST 1 "20 September 2004" speaker-test
16 speaker\-test \- command-line speaker test tone generator for ALSA
18 .B speaker\-test [\-options]
21 \fBspeaker\-test\fP generates a tone that can be used to test the speakers of a computer.
26 \fB\-c\fP | \fB\-\-channels\fP \fINUM\fP
27 \fINUM\fP channels in stream
30 \fB\-D\fP | \fB\-\-device\fP \fINAME\fP
31 PCM device name \fINAME\fP
34 \fB\-f\fP | \fB\-\-frequency\fP \fIFREQ\fP
35 sine wave of \fIFREQ\fP Hz
42 \fB\-b\fP | \fB\-\-buffer\fP \fITIME\fP
43 Use buffer size of \fITIME\fP microseconds.
44 When 0 is given, use the maximal buffer size.
45 The default value is 0.
48 \fB\-p\fP | \fB\-\-period\fP \fITIME\fP
49 Use period size of \fITIME\fP microseconds.
50 When 0 is given, the periods given by \fB\-P\fP option is used.
51 The default value is 0.
54 \fB\-P\fP | \fB\-\-nperiods\fP \fPERIODS\fP
55 Use number of periods. The default value is 4.
58 \fB\-r\fP | \fB\-\-rate\fP \fIRATE\fP
59 stream of \fIRATE\fP Hz
62 \fB\-t\fP | \fB\-\-test\fP \fBpink\fP|\fBsine\fP|\fBwav\fP
63 \fB\-t pink\fP means use pink noise (default).
65 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.
67 \fB\-t sine\fP means to use sine wave.
69 \fB\-t wav\fP means to play WAV files, either pre-defined files or given via \fB\-w\fP option.
71 You can pass the number from 1 to 3 as a backward compatibility.
74 \fB\-l\fP | \fB\-\-nloops\fP \fBCOUNT\fP
76 Specifies the number of loops. Zero means to run infinitely.
78 When \fB\-s\fP option below with a valid channel is given, \fBspeaker\-test\fP will perform
79 always a single-shot without looping.
82 \fB\-s\fP | \fB\-\-speaker\fP \fBCHANNEL\fP
83 Do a single-shot speaker test for the given channel. The channel number starts from 1.
84 The channel number corresponds to left, right, rear-left, rear-right, center, LFE,
85 side-left, side-right, and so on.
87 For example, when 1 is passed, it tests the left channel only once rather than both channels
91 \fB\-w\fP | \fB\-\-wavfile\fP
92 Use the given WAV file for the playback instead of pre-defined WAV files.
95 \fB\-W\fP | \fB\-\-wavdir\fP
96 Specify the directory containing WAV files for playback.
97 The default path is \fI/usr/share/sounds/alsa\fP.
102 Produce stereo sound from one stereo jack:
104 speaker-test -Dplug:front -c2
107 Produce 4 speaker sound from two stereo jacks:
109 speaker-test -Dplug:surround40 -c4
112 Produce 5.1 speaker sound from three stereo jacks:
114 speaker-test -Dplug:surround51 -c6
117 To send a nice low 75Hz tone to the Woofer and then exit without touching any other speakers:
119 speaker-test -Dplug:surround51 -c6 -s1 -f75
123 The speaker-test program was written by James Courtier-Dutton.
124 Pink noise support was added by Nathan Hurst.
125 Further extensions by Takashi Iwai.