Nick Barnes wrote:
sox: Input and Output rates must be different to use resample effect
This means exactly what it says. You have asked for the output sample
rate to be 8KHz, so apparently the input sample rate must _already_ be
8KHz, which means there is no resampling required.
Since you said
Kevin P. Fleming
This means exactly what it says. You have asked for the
output sample rate to be 8KHz, so apparently the input sample
rate must _already_ be 8KHz, which means there is no
resampling required.
Indeed. This much is obvious.
Since you said that the input file was
Nick Barnes wrote:
Which doesn't resolve my problem. How do I convert a wav (or ulaw, or alaw
or whatever) to gsm? The example given on the wiki clearly doesn't work.
A little deduction is in order here...
If the source file is already 8KHz samples, then no resampling is
necessary. Looking at the
Kevin P. Fleming:
In other words, to take a WAV file _created by Asterisk_ and
turn it into GSM, this is all that is needed:
$ sox file.wav file.gsm
Which is where I'd got to. However, it doesn't appear to work - all I end up
with is a very loud hiss
So that's when I looked at the
I use the following command-line:
sox input.wav -r 8000 output.gsm
It does rate conversion on my box no matter what the input rate is. I
routinely convert audio files from 22,050 Hz to 8,000 Hz like this and
it never lets me down. The placement of -r 8000 is important. If you
put it before