Difference between revisions of "SoX"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
==Related== | ==Related== | ||
* [[SoXI]]: the '''So'''und e'''X'''change '''I'''nformation utility | * [[SoXI]]: the '''So'''und e'''X'''change '''I'''nformation utility | ||
+ | ==Notes== | ||
+ | The documentation for bitrate and channels seems to be slightly wrong. If you use the <code>-c</code> or <code>-r</code> 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 <code>channels</code> or <code>rate</code> options ''after'' the output file. | ||
+ | |||
+ | Example: | ||
+ | sox {{arg|input filespec}} {{arg|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== | ==Manual Pages== | ||
* {{l/manpage|sox}} | * {{l/manpage|sox}} | ||
* {{l/manpage|soxi}}: sox information utility | * {{l/manpage|soxi}}: sox information utility |
Latest revision as of 15:30, 7 November 2019
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.)