[LAU] How to decode raw ADPCM data?

From: Jozef Henzl <popcorp86@email-addr-hidden>
Date: Wed Mar 12 2008 - 11:43:23 EET

Hello,
Does anyone know which tool or library i can use to decode audio data stored
in a ADPCM header-less file? (8kHz, 1 channel, (12,16,25 or 32) bit)
I've tried sox and libsamplerate, but both throws an error.

The data are from a voice-recording machine, with very limited documentation.
It says the data are "standard ADPCM". No idea whether it is IMA or VOX or MS
ADPCM format.

$ sox -i -t raw -r8000 -2 -c1 data.adpcm -t wav out.wav
sox sox: data.adpcm: this encoding is not supported for this data size
(Unsupported data format)

and with sndfile:
<code snip>
sfinfo.format = SF_FORMAT_IMA_ADPCM | SF_FORMAT_RAW;
sfinfo.samplerate = 8000;
sfinfo.channels = 1;
if ((fpr = sf_open ("data.adpcm", SFM_READ, &sfinfo)) == NULL)
...
</code snip>

thanks,

-- 
Jozef Henzl
http://popcorp.org
http://chan.cz
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Wed Mar 12 12:15:05 2008

This archive was generated by hypermail 2.1.8 : Wed Mar 12 2008 - 12:15:05 EET