Introduction
SoX reads and writes audio files in most popular formats and can
optionally apply effects to them; it can combine multiple input
sources, synthesise audio, and, on many systems, act as a general
purpose audio player or a multi-track audio recorder. It also has
limited ability to split the input in to multiple output files.
All SoX functionality is available using just the sox command, however,
to simplify playing and recording audio, if SoX is invoked as play the
output file is automatically set to be the default sound device and if
invoked as rec the default sound device is used as an input source.
Additionally, the soxi(1) command provides a convenient way to just
query audio file header information.
The heart of SoX is a library called libSoX. Those interested in
extending SoX or using it in other programs should refer to the libSo…