文本到语音转换
我在应用程序中使用 OpenEars 进行语音到文本的转换,但现在的情况要求我将文本转换为语音。我可以仅使用 OpenEars 来执行此操作吗?有人试过这个吗?
如果是这样,请指导我如何执行此操作。任何帮助将不胜感激。
I am using OpenEars in my app for speech to text conversion, but now the situation demands that I convert my text to speech. Can I do this using OpenEars only? Has anyone tried this?
If so, please guide me on how to do this. Any help will be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,通过张开耳朵是可能的。您可以借助 FliteController 查看 Openears 本身提供的示例项目。
有一种方法叫say。
例如
希望有帮助。
Yes it is possible through open ears. You can look at the sample project provided in the Openears itself with the help of FliteController.
There is method called say.
e.g.
Hope it helps.
在要使用 FliteController 的类中,您需要导入 FliteController.h:
接下来,您需要在正确配置的安装中打开 OpenEarsVoiceConfig.h,并取消注释您需要使用的语音,如该文件中所述。
然后,您可以实例化 FliteController 并使用未注释的声音向其发送以下消息:
如果您清楚如何实例化该对象并且 OpenEars 的安装正确,那么这就足够了。如果没有,以下 URL 提供了更多详细信息:
http://www.politepix。 com/openears/yourapp/
In a class in which you want to use FliteController you need to import FliteController.h:
Next, you need to open OpenEarsVoiceConfig.h in a correctly-configured installation and uncomment the voices you need to use, as explained in that file.
Then you can instantiate FliteController and send it the following message using a voice you've uncommented:
That should be sufficient if you're clear on how to instantiate the object and your installation of OpenEars is correct. If not, there is even more detail on the specifics at the following URL:
http://www.politepix.com/openears/yourapp/