I generated a 10 second audio file containing white noise, using SoX :
sox.exe -n witteruis0.wav synth 10 whitenoise
sox.exe witteruis0.wav -n stats
The resulting "witteruis0.wav" is more or less normalized, but shows a DC offset, which I tried to get rid of, using :
sox.exe witteruis0.wav witteruis1.wav dcshift [negative of the DC offset in stats]
However, it responds with :
sox.exe WARN dcshift: dcshift clipped XXX samples; decrease volume?
The requested "witteruis1.wav" was not created...
I read that the volume can be changed automatically to avoid clipping using the -G option, but I have no clue where to put this in the command. I put it everywhere, each time resulting in errors. Examples are whoefully lacking in the SoX manual! Can someone help me out?