“Android 支持的媒体(编码器)格式”现在包括AAC和AMR-WB,但是我们如何使用它们呢?

发布于 2024-10-14 20:44:35 字数 729 浏览 7 评论 0原文

根据此页面,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.AACMediaRecorder.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心的憧憬 2024-10-21 20:44:35

当心:
检测 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文