如何对实时音频进行编码?
我正在创建语音报告。用户必须提交他的语音报告,并且应该同时使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更具体地说明如何录制音频。您只获取 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?