Skip to content

Using SoX

Sinho Chewi edited this page Jul 3, 2016 · 2 revisions

SoX

SoX is a free command line utility used to manipulate audio files. This page contains commonly used commands to convert and compress audio files into the proper format. Remember, audio files should be limited in size to at most 10 MB. Throughout this page, we will assume there is a file named example.wav.

Commands

soxi example.wav

Display information about the audio file.

soxi example.wav -c 1 example.wav

Reduces the number of channels to one (mono), compressing the audio.

soxi example.wav -r <sampling-rate> example.wav

Changes the sampling rate of the audio, which can also compress the file. Here is a convenient list of sampling rates to use, if compression is necessary:

  • 8,000
  • 11,025
  • 16,000
  • 22,050
  • 32,000
  • 37,800
  • 44,100
Clone this wiki locally