Question

Hi I use android to generate a wav file which is upload before to my server. In order to play this WAV file in a telephony system I must convert it to 16000 bitrate. The problem is the wav generate by android because I have this error :

WAVE: RIFF header not found

here is my sox script :

# sox -t wav input.wav output.wav

Thanks for your help!

UPDATE : The wav created by android give me that : ISO Media, MPEG v4 system, 3GPP

Was it helpful?

Solution

So with the last version of ffmpeg (build 03-Feb-2014) the following command work :

ffmpeg -i 2353-1389698676.wav -ar 8000 -b 16k convert/2353-1389698676-convert.wav

So SOX fail for this kind of conversion...

OTHER TIPS

It looks like your WAV file doesn't have header data. WAV files are a type of RIFF file and they require header data before you write the audio data. Here is a link to a page that details how the format of WAV file headers. Just add the header, set all the values to match your content, and that should work.

Link : http://www.topherlee.com/software/pcm-tut-wavformat.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top