Print Version | Search Site

Welcome to the home of SoX, the swiss army knife of sound processing programs. SoX is a command line utility that can convert various formats of computer audio files in to other formats. It can also apply various effects to these sound files during the conversion. As an added bonus, SoX can play and record audio files on several unix-style platforms.

General Information

Sox is a general purpose sound converter/player/recorder that supports the following formats:

  • RAW sound data in various data styles
  • RAW textual sound data
  • Amiga 8svx files
  • Apple/SGI AIFF files
  • SUN .au files
    • PCM, U-law, A-law, G7xx ADPCM files
    • mutant DEC .au files
    • NeXT .snd files
  • AVR files
  • CD-R data (music CD format)
  • CVS and VMS files (continous variable slope)
  • GSM raw data (with optional library)
  • Macintosh HCOM files
  • Amiga MAUD files
  • MP3 files (with optional external library)
  • IRCAM SoundFile files
  • NIST SPHERE files
  • Turtle beach SampleVision files
  • Soundtool (DOS) files
  • Yamaha TX-16W sampler files
  • Sound Blaster .VOC files
  • Ogg Vorbis files (with optional external library)
  • FLAC files (with optional external library)
  • Dialogic/OKI ADPCM .VOX files
  • Microsoft .WAV files
    • PCM, U-law, A-law, MS ADPCM, IMA ADPCM, GSM, RIFX (big endian)
  • Psion (PDA) Record.app files and A-law .WVE files
  • Maxis XA Audio files
    • EA ADPCM (read support only)
  • Record and Play audio on various Unix platforms.
  • null file type that reads and writes from/to nothing.

The following effects can be applied to sound data:

  • Channel averaging, duplication, and removal
  • Band-pass filter
  • Band-reject filter
  • Base tone control
  • Compress and Expand (compand) the dynamic range of samples
  • Chorus effect
  • DCShift audio
  • Deemphases filter
  • Move soundstage to front of listener.
  • Add an echo or sequence of echos
  • Fade in or out
  • Apply a flanger effect
  • Apply a high-pass filter
  • Apply a low-pass filter
  • Apply an equalizer effect
  • Add dithering/masking noise to a signal
  • Multi-band Compander
  • Pad with silence
  • Pan sound between channels
  • Apply a phaser effect
  • Change the pitch of a sound file without affecting its speed.
  • Repeat audio data
  • Change sampling rates using several different algorithms.
  • Apply a reverb effect
  • Reverse sound samples (to search for Satanic messages :)
  • Detect periods of silence and start and stop processing based on it
  • Change the speed of samples being played (without affecting pitch)
  • Display general stats on sound samples
  • Stretch/shorten the duration of a sound file.
  • Swap stereo channels
  • Create sounds with a simple synthesizer
  • Treble tone control
  • Trim audio data from beginning and end of file.
  • Apply a tremolo (a.k.a vibrato) effect
  • Adjust volume of samples.
  • Noise elimination using frequency profiling

Latest News

Released SoX 14.0.1 on January 29, 2008. The release included to many changes to list here. Changelog can be view at CVS ChangeLog.

Technical Information

Sox is often used to convert an audio file from one sampling rate to another rate (e.g. from DAT to CD rates). Sox's currently has three different algorithms that each suffer from different problems. Please read a good technical overview of each's ability and possibly provide improvements if you're into DSP.

If your interested in the format of various audio files then you will be interested in the Audio File Format FAQ which I also maintain.

Release Information

Sox has been tested under Linux, Solaris, and Windows 9x and I have received success reports for various other platforms such as Irix and OS/2.

Download the latest source code (last updated January 29, 2008): sox-14.0.1.tar.gz

Other files available (will slowly update to 14.0.1 versions):

Older versions are available from the SourceForge download page.

Support and Development

SorceForge.net Most of the SoX project's resources are provided by Soureforge. There is a SoX project web site that can be of use when working with CVS and its mailing list.

There is a low volume mailing list set up that you can subscribe to or read online located at the SoX-users Mailing List web site.

Development of SoX is done using CVS. It is possible to view the files checked in to CVS using a CVS web interface as well as find additional information on SourceForge's CVS webpage.

If you have CVS installed on your system then you may obtain a snapshot of the latest source by performing the following commands. The commands will log you in and check out a copy of the sox module and place it in the subdirectory it was ran from.

 cvs -d :pserver:anonymous@sox.cvs.sourceforge.net:/cvsroot/sox login
 cvs -z3 -d :pserver:anonymous@sox.cvs.sourceforge.net:/cvsroot/sox co -P sox

The anonymous CVS account does not need a password. When prompted for a password by the cvs command, enter nothing and hit Enter.

To merge in future updates you may run the following command (when ran inside the sox directory that was created from your checkout):

 cvs update -P 

If you make any changes to SoX that you would like to be included in future releases then you may use the following command to make an easy to read diff.

 cvs diff -uw

Related Sites

Below are some links related to Sound Processing.

Powered by PmWiki Last modified: April 05, 2008, at 05:38 AM