Skip to content

SoX - Swiss Army knife of sound processing programs

sh
brew install sox

Play an audio

sh
play source.wav

Convert from 32 bit sample rate to 16 bit

sh
sox source.wav -b 16 -e signed-integer output.wav

Change samplerate of an audio

sh
sox -r <sample-rate> source.wav output.wav

Change encoding of an audio

sh
sox -t wav -r 44100 -c 1 output441.wav -t mp3 out.mp3