Decode AMR audio file in Android -



Decode AMR audio file in Android -

is there way decode amr sound file in android , have access raw sound data? mediacodec available api 16 , above. need work on android 2.2 , above.

i think there's no native api in 2.x platforms doing this. can utilize ffmpeg binaries in application instead.

with quick search found this precompiled version of ffmpeg android 2.2.

you can place executable in application raw resources folder , utilize runtime.getruntime().exec() execute it.

to convert amr file wav ffmpeg can this:

ffmpeg -i file.amr file.wav

and convert wav raw pcm can following: (taken here)

ffmpeg -i file.wav -f s16le -acodec pcm_s16le file.pcm

android decode amr

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -