Cocoa 语音合成,将音频保存到缓冲区以供 OpenAL 使用
我想在 osx 上将文本翻译为音频,类似于这里的操作: http://developer.apple.com/library/mac/ #samplecode/CocoaSpeechSynthesisExample/Introduction/Intro.html 。声音播放完毕后,我想将其保存到缓冲区以便在 openAL 中进一步使用,这可能吗?
我现在看到的唯一方法是将语音保存为 .aiff,然后再次解析它以供 openAL,如果有一种不涉及首先保存到硬盘的方法,那就太好了。 (我也对碳替代品持开放态度)
I want to translate text to audio on osx similar as done here:
http://developer.apple.com/library/mac/#samplecode/CocoaSpeechSynthesisExample/Introduction/Intro.html . After the sound is finished playing I would like to save it to a buffer for further use in openAL, is that possible?
The only way I see right now is to save the speech as an .aiff and then parse it again for openAL, it would be super great if there was a way which does not involve saving to the harddrive first. (I am also open for a carbon alternative)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 Mac OS X 10.6 开始,您可以使用语音合成管理器 到 对着特定音频设备说话。
Since Mac OS X 10.6, you can use the Speech Synthesis Manager to speak into a specific audio device.