SoX

SoX is the Swiss Army knife of sound processing tools: it can convert sound files between many different file formats and audio devices, and can apply many sound effects and transformations, as well as doing basic analysis and providing input to more capable analysis and plotting tools.

Tags multimedia Sound/Audio Conversion Players
Licenses GPL LGPL
Operating Systems OS Independent

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  10 Nov 2008 21:46
  • Rrelease-after

Changes: The processing chain now supports unlimited input files, multiple input pipes, and in some cases, multiple output files. Improved large file support and improved rate/dither/mcompand effects. A new Mac OSX audio driver as well as several new effects.

  • Rrelease-mid
  •  05 Aug 2008 00:26
  • Rrelease-after

Changes: New formats: WavPack, htk, f4, and f8. New effects: splice, remix, normalize, delay, contrast, rate, spectrogram, and gain. A new VU Meter and various improvements and bugfixes.

  • Rrelease-mid
  •  09 Mar 2008 15:52
  • Rrelease-after

Changes: Improved 24-bit WAV support, a rewrite of reverb effect, fixes to audio device drivers, and updates to work with the latest version of FLAC.

  • Rrelease-mid
  •  11 Feb 2007 19:28
  • Rrelease-after

Changes: Highlights of this release include support for FLAC files, 24-bit audio, new equalizer effects, enhanced command line options and output display, the ability to merge 2 mono files into 1 stereo file, and much more. There are also many bugfixes.

  • Rrelease-mid
  •  07 May 2006 12:42
  • Rrelease-after

Changes: This release contains several infinite loop and crash bugfixes. It also contains improvements to the noisered, mcompand, silence, and reverse effects.

Rss Recent comments

Rcomment-before 11 Jul 2008 21:48 Rcomment-trans bcrowell Rcomment-after

more problems
I see it's been five years since I commented on this program. There seems to have been quite a bit of bitrot since then. Some of this may be packaging-related.

After upgrading my ubuntu box to hardy heron, I noticed that sox's play command no longer worked: "play soxio: Failed writing `default': unknown file type `ao'." Ogg support has also disappeared. None of this seems to be fixed by installing the libsox-fmt-ogg or libsox-fmt-all packages.

Use of the tempo command causes a segfault on my x64 box. This bug was supposed to have been fixed in sox 14.0.1-2, but that version segfaulted for me too.

Sox used to be able to decode mp3s without having lame installed; now it no longer does. IIRC there are no license or patent issues with decoders for mp3, so I don't understand why this situation has gotten worse rather than better.

Sox used to automatically recognize if you had lame installed before you compiled it, and would then take mp3 as an input format. That no longer seems to work.

Judging from discussion on ubuntuforms, there seem to be a lot of people struggling to get this kind of stuff to work:

http://ubuntuforums.org/showthread.php?t=786928&highlight=sox+ogg

http://ubuntuforums.org/showthread.php?t=17272

Rcomment-before 20 Jul 2004 02:17 Rcomment-trans thefreek Rcomment-after

Re: useful but buggy

> 2. The split command doesn't work the

> way the man page claims it does; you

> have to do "-c 2" instead.

Actually, you have to do a bit more; to get the (l)eft channel:

sox (inputfile) -c 1 (outputfile) avg -l

or the (r)ight:

sox (inputfile) -c 1 (outputfile) avg -r

The -c 1 is an outputfile-switch and tell it you only want one channel output.

Additionally the RH9-supplied version is buggy and the avg-filter will do straight nothing.

Rcomment-before 20 Nov 2003 14:22 Rcomment-trans bcrowell Rcomment-after

useful but buggy
I use sox a lot, and find it very useful. However, it does have some bugs, and I've never had any luck getting in touch with the author about them, after trying all three e-mail addresses he has listed publicly. (Some mails bounced, others got no response.)

The bugs I've encountered are:

1. Doing "speed 0.5" can cause it to go into an endless loop and fill your hard disk. (This seems to occur with any number less than about 0.7.)

2. The split command doesn't work the way the man page claims it does; you have to do "-c 2" instead.

No-screenshot

Project Spotlight

Free Islamic Toolbar

Islamic toolbar for watching Islamic TV channels, listen Islamic radio, Islamic Search engine and more..

5ce91300369404ce3a4befb9acb03d4d_thumb

Project Spotlight

CLIChart

Command line tools to summarize and chart data from system logs.