| Linux / Unix Command: rec |
NAME
play - play any sound file to audio device rec - record audio to any sound file formatSYNOPSIS
play [fopts] infile [effect] rec [fopts] outfile [effect]DESCRIPTION
This manual page briefly documents the play and rec commands.play and rec are programs that allow you to play and record different types of sound files from the command line. They are front ends to the more general sox(1) package. Normally, the play command will automatically detect the type and other parameters of the soundfile. If it can't do so, the parameters can be changed through options.
OPTIONS
A summary of common options are included below. For a complete description of options and their values, see the sox(1) man page.- -c [channels], --channels=[channels]
- Define the number of channels in the file.
- -d [device], --device=[device]
- Specify a different device to play the sound file to.
- -f [format], --format=[format]
- Specify bit format of the sample. One of s, u, U, A, a, or g.
- -r [rate], --rate=[rate]
- Specify the sample rate of the audio data (samples per second).
- -s [size], --size=[size]
- Specify the width of each sample. One of b, w, l, f, d, or D.
- -t [type], --type=[type]
- Specify audio file format to use. Useful if it can not be automatically determined.
- -v [volume], --volume=[volume]
- Change the audio volume
- -x , --xinu
- Reverse the byte order of the sample (only works with 16 and 32-bit data).
- -h, --help
- Show summary of options.
- --version
-
Show version of play/rec.
- Description of effects are described in the
-
sox(1)
man page.
SEE ALSO
Important: Use the man command (% man) to see how a command is used on your particular computer.

