문제

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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top