[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Another sox question -- resampling.



I've got an MP3 file that (for some reason) was sampled at 32000 Hz, and
I'm trying to convert it into a WAVE file to use as a CD track.  I've
tried the following:

sox foo.mp3 -w -r 44100 foo.wav

sox foo.mp3 -w -r 44100 foo.wav resample

sox foo.mp3 -w -r 44100 foo.wav polyphase

mp32ogg foo.mp3
sox foo.ogg -w -r 44100 foo.wav [resample|polyphase]

But the resampling does not work.  Every one of these produces a foo.wav
that sounds like a record played at a slow speed.  In the last case,
foo.ogg also sounds that way.

I did this successfully earlier with
sox bar.mp3 -w -r 44100 bar.wav resample
where bar.mp3 had been sampled at 22050 Hz, so maybe the problem is that
the target rate is not a multiple of the source?

How can I get around this?

Thanks,
Adam



Reply to: