Sox does not support the input and output files being the same iirc. Here’s something I wrote up a while ago to do the exact thing you want to do, but unfortunately it’s Windows only (Sox is called from Powershell). Still, you might find some useful info in there.
1 Like