Search code examples
soxlibsox

How to change the bitrate using SoX


I'm trying to change the bitrate of the given audio file, the following code generate an audio with 1411 kbps

sox -t wav input.wav -C 320 output.wav speed 0.86 reverb 52 50 100 100 0 0;

enter image description here

Can anyone guide me to how I can change the audio bitrate to 320kbps


Solution

  • It turns it out that changing bitrate supported only if the output audio mp3 not wav, so the command should be :

    sox -t wav input.wav -C 320 output.mp3 speed 0.86 reverb 52 50 100 100 0 0