Re: MP3 encoding of wav files from Olympus voice recorder



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,

--
The early bird who catches the worm works for someone who comes in
late and owns the worm farm. --Travis McGee
There is no Darkness in Eternity/But only Light too dim for us to see
.