Android 将音频记录中的 pcm 文件转换为较小的文件
我尝试在 Android 中录制音频。使用 MediaRecorder 的声音质量确实很糟糕。
所以我尝试使用 AudioRecord 函数将声音写入流。质量很好,但 pcm 文件太大,因为我想将它们上传到远程服务器。
有谁知道如何压缩pcm(如mp3或其他)? 非常感谢任何帮助。
汤姆
I tried to record audio in Android. The quality of the sound using the MediaRecorder really sucks.
So I tried writing the sound to a stream using the AudioRecord function. Great quality but pcm-files are too large in size as I want to upload them to a remote server.
Does anybody know how to compress the pcm (like mp3 or else)?
Any help is mostly appreciated.
Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,Android 中没有内置的音频转换器。最好的选择是使用第三方库,甚至可能是 ac/c++ 库。
查看此问题了解更多信息:如何在 Android 设备上将 WAV 编码为 mp3
As far as I know, there are no built-in audio converters in Android. Your best bet is to use third party library, maybe even a c/c++ one.
Look at this question for more info: How to encode a WAV to a mp3 on a Android device