“Android 支持的媒体(编码器)格式”现在包括AAC和AMR-WB,但是我们如何使用它们呢?
根据此页面,android框架中有一些可用的编码器:
http://developer .android.com/guide/appendix/media-formats.html
我有兴趣从麦克风录制音频并将其编码为 AAC LC/LTP 和 AMR-WB,但我还没有找到如何在参考页。
任何指针将不胜感激。提前致谢。
最近参考页面更新了: http://developer.android.com/reference/android/media/MediaRecorder .AudioEncoder.html
..它说 MediaRecorder#setAudioEncoder(int)
与 MediaRecorder.AudioEncoder.AAC
和 MediaRecorder.AudioEncoder.AMR_WB< /code> 是 API 级别 10 的功能。
所以看起来目前我没有设备可以尝试该功能。伤心。
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.AudioEncoder.AMR_WB
is the feature of API level 10.
So it looks like currently I have no devices to try with that. Sad.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当心:
检测 Android 上支持的音频编码器防止崩溃“未找到给定的音频编码器 2”
有一些运行 Android 4.0.x 的设备在您尝试使用 AMR 时会崩溃,即使它被列为核心媒体编解码器。
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.