如何对实时音频进行编码?

发布于 2024-08-03 17:21:53 字数 127 浏览 6 评论 0原文

我正在创建语音报告。用户必须提交他的语音报告,并且应该同时使用 Vorbis 编码器对音频数据进行编码。它工作正常但是 录音结束后开始编码。

但我应该必须即时使用 Vorbis 编码器。请分享任何示例代码,这将会很有帮助。

I am on creating voice report. The user has to submit his voice report and it should simultaneously encode the audio data using Vorbis encoder. Its working fine but
encoding will start after the recording is over.

But I should have to employ the Vorbis encoder on the fly. Please share any sample code it would be much helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

神经大条 2024-08-10 17:21:53

更具体地说明如何录制音频。您只获取 wav 文件还是获取大块数据?如果是后者,为什么不将其实时输入编码器呢?

Be more specific about how you record the audio. Do you just get the wav file or you get chunks of data? If latter, why don't you just feed it to the encoder in real time?

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