According to this page, there are some encoders available in android framework:
http://developer.android.com/guide/appendix/media-formats.html
I'm interested in recording audio from mic and encoding it to AAC LC/LTP and AMR-WB, but I haven't found how to in the reference page.
Any pointer would be appreciated. Thanks in advance.
Recently the reference page was updated: http://developer.android.com/reference/android/media/MediaRecorder.AudioEncoder.html
.. and it says that MediaRecorder#setAudioEncoder(int)
with MediaRecorder.AudioEncoder.AAC
and MediaRecorder.Aud开发者_StackOverflow中文版ioEncoder.AMR_WB
is the feature of API level 10.
So it looks like currently I have no devices to try with that. Sad.
Be careful: Detect supported audio encoders on Android to prevent crash "The given audio encoder 2 is not found" there are some devices out there with Android 4.0.x that crash when you try to use AMR even though it's listed as a core media codec.
精彩评论