SoX: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Created page with "category:Linux category:CLI category:audio ==About== sox is a general command line utility for processing, playing, and recording audio. For single input..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
[[category:audio]]
[[category:audio]]
==About==
==About==
[[sox]] is a general [[command line]] utility for processing, playing, and recording audio.
[[SoX]], the '''So'''und e'''X'''change program, is a general [[command line]] utility for processing, playing, and recording audio.


For single input files, it can:
For single input files, it can:
* perform basic editing
* perform basic editing
* apply effects
* apply effects
* return information (via [[soxi]])
* return information (via [[SoXI]])


For multiple input files, it can be used to:
For multiple input files, it can be used to:
Line 14: Line 14:
* concatenate them serially
* concatenate them serially
* use one to effect another
* use one to effect another
==Pages==
==Related==
* {{l/manpage}}
* [[SoXI]]: the '''So'''und e'''X'''change '''I'''nformation utility
* [[soxi]]: sox information 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==
* {{l/manpage|sox}}
* {{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
  • 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