Search code examples
androidaudiowavsox

Convert android wav file with SOX


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


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...