SoX

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Revision as of 15:30, 7 November 2019 by Woozle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

SoX, the Sound eXchange program, is a general command line utility for processing, playing, and recording audio.

For single input files, it can:

  • perform basic editing
  • apply effects
  • return information (via SoXI)

For multiple input files, it can be used to:

  • mix them together
  • concatenate them serially
  • use one to effect another

Related

  • SoXI: the Sound eXchange Information utility

Notes

The documentation for bitrate and channels seems to be slightly wrong. If you use the -c or -r options before the first filename, that's treated as an expectation of the input file's format. If you want the output file to use a different number of channels or bitrate than the input file does, you need to use the channels or rate options after the output file.

Example:

sox <input filespec> <output filespec> rate 44100 channels 2

(Actually, I'm not sure whether it's using the fully-spelled version or the placement that makes the difference; experimentation needed.)

Manual Pages