brec1
Buffered sound recording/playing
Part of bplay(1).
Usage
bplay [-d
device]
[-B
buffersize]
[-S]
[-s
speed]
[-b
bits]
[{[-t
secs] | [-T
samples]}]
[{[-j
secs] | [-J
samples]}]
[-D
level]
[file]
brec [-d
device]
[-B
buffersize]
[-S]
[-s
speed]
[-b
bits]
[{[-t
secs] | [-T
samples]}]
[{-r | -v | -w}]
[-D
level]
[file]
Overview
bplay copies data from the named sound file (or the standard input if no filename is given) to the audio device.
brec copies data from the audio device to the named sound file (or the standard output if no filename is present).
These programs are intended to be drop-in replacements for the vplay and vrec programs by Michael Beck ([email protected]).
Options
-
-B buffersize -
Use the supplied audio buffer size instead of the default.
-
-d device -
Use the supplied audio device instead of the default.
-
-S -
Sound file is stereo.
-
-s speed -
The speed in samples per second.
-
-b bits -
The number of bits per sample. Only 8 and 16 are currently supported.
-
-t secs -
The number of seconds to be played or recorded.
-
-T samples -
The number of samples to be played or recorded.
-
-j secs -
When playing, the number of seconds to skip at the beginning of the input before playing.
-
-J samples -
When playing, the number of samples to skip at the beginning of the input before playing.
-
-r -
When recording, write raw sound file.
-
-v -
When recording, write Creative Labs VOC sound file.
-
-w -
When recording write Microsoft Wave sound file. Note that the WAVE file format is limited to 4GiB filesize. Recording more data is possible, but the length info won't be consistent.
-
-q -
Quiet mode. No messages are displayed.
-
-D level -
Print debug information to stderr. Debug level ranges from 0 to 2, where 0 is no debug information.
Files
/dev/dsp The audio device.
Releases
16 releases since Debian 1.2 (Rex); the text changed 5 times.
-B since Debian 2.0 (Hamm);
-D since Debian 2.2 (Potato);
-S since Debian 2.2 (Potato);
-d since Debian 2.2 (Potato);
-q since Debian 5.0 (Lenny);
-r since Debian 2.2 (Potato);
-v since Debian 2.2 (Potato);
-w since Debian 2.2 (Potato).