Re: MP3 encoding of wav files from Olympus voice recorder



On Thu, 28 Sep 2006 17:17:34 +0200, Dances With Crows wrote:

On Thu, 28 Sep 2006 08:50:23 -0500, Dances With Crows staggered into the
Black Sun and said:
Bernard wrote:
dw_c0106.wav: RIFF (little-endian) data, WAVE audio, mono 22050 Hz
Should be no problem.
Strange things are going on. Send the original 22-second .wav file to
me so I can look at it.

OK, the file came through. Check it out:

clairissa:~$ file dw_c0106.wav
dw_c0106.wav: RIFF (little-endian) data, WAVE audio, IMA ADPCM, mono
22050 Hz

...IMA ADPCM is a compressed format. And check this:

clairissa:~$ lame -m m dw_c0106.wav dw_c0106.mp3 Warning: corrupt or
unsupported WAVE format

...so lame doesn't understand the IMA ADPCM compression. How annoying.
Fortunately, it's pretty easy to fix that. Like so:

clairissa:~$ sox -V dw_c0106.wav -u temp.wav sox: Reading Wave file: IMA
ADPCM format, 1 channel, 22050 samp/sec sox: Writing Wave file:
Microsoft PCM format, 1 channel, 22050 samp/sec

...boo ya! Microsoft PCM format, which lame understands. Then we just
run lame on the temp.wav file that sox wrote out, and everything works.
HTH, bonne chance,

Thanks a lot ! It does work perfectly now, even with a large file of
mine. How blind have I been not to see the first output line after the
lame command : 'Warning: corrupt or unsupported WAVE format'. I didn't
know how to use 'sox' either ; it seems to be a very useful tool !

Bernard
.



Relevant Pages