How to use sox to compress mp3?

I would like to reduce the file size of some mp3 audio using sox. I think that I can reduce stereo sound by only 1 channel (i.e. Mono), reduce the sampling rate and decrease the bit depth. I believe sox cannot do this. Is this true or did I do it right?

$ sox -r 8000 -c 1 2008-12-28-2.MP3 foo.mp3 sox WARN formats: can't set sample rate 8000; using 44100 sox WARN formats: can't set 1 channels; using 2 
+6
source share
1 answer

Arguments must go before the output file:

 sox 2008-12-28-2.MP3 -r 8000 -c 1 foo.mp3 

They can also be represented as effects:

 sox 2008-12-28-2.MP3 foo.mp3 remix 1 rate 8000 
+7
source

Source: https://habr.com/ru/post/910919/


All Articles