1 .\" $NetBSD: audiorecord.1,v 1.37 2008/05/29 14:51:27 mrg Exp $
3 .\" Copyright (c) 1998-1999 Matthew R. Green
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd record audio files
52 program copies the audio device to the named audiofile or,
53 if the file name is -, to the standard output.
55 The output file will contain either a Sun/NeXT audio header, a
56 RIFF/WAVE audio header or no header at all.
57 Sun output files using a linear PCM encoding are written with big-endian
58 signed samples, possibly after converting these from little-endian or
60 RIFF/WAVE files are written in little-endian, signed samples, also
61 converting if necessary.
62 The default output is Sun/NeXT format, but if the output file
66 file extension it will be written as RIFF/WAVE.
68 The following options are available:
69 .Bl -tag -width XpXprecisionX
71 Append to the specified file, rather than overwriting.
75 This value must be between 0 and 63.
77 Set number of channels to
80 Set the audio device to be
85 Set encoding to either
90 or any other value reported by
91 .Ic audioctl encodings .
92 The default encoding is
94 If the output format is
96 the file will contain slinear_be samples, if it is
98 then slinear_le, independent of the argument to
100 Setting the argument to
102 still may be important since it is used in an
104 call to the kernel to choose the kind of data provided.
106 Set the output header format to
108 Currently supported formats are
113 for Sun/NeXT audio, WAV, and no header, respectively.
116 Normally when appending to audiofiles using the
118 option, the sample rates must match.
121 option will allow a discrepancy to be ignored.
123 Print a help message.
127 format, add the string
129 to the output header.
131 Set the monitor volume.
132 .It Fl P Ar precision
134 This value is the number of bits per sample, and is normally either
145 Set the input port to
158 Set the sampling rate.
159 This value is per-second.
160 Typical values are 8000, 44100, and 48000, which are the telephone,
161 CD Audio, and DAT Audio default sampling rates.
163 Sets the maximum amount of time to record.
164 Format is [hh:]mm:ss[.dddddd].
168 Set the volume (gain) to
170 This value must be between 0 and 255.
173 .Bl -tag -width AUDIOCTLDEVICE
175 the audio control device to be used.
177 the audio device to be used.
208 program was first seen in SunOS 5.
209 It was first made available in
211 RIFF/WAVE support, and support for converting signed/unsigned and
212 big/little-endian samples was first made available in
217 program was written by
218 .An Matthew R. Green Aq mrg@eterna.com.au .
220 WAV big-endian samples are converted to little-endian, rather than
221 a RIFX header being written.