文本到语音转换

发布于 2024-11-11 13:56:37 字数 124 浏览 0 评论 0原文

我在应用程序中使用 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 技术交流群。

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

发布评论

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

评论(2

念三年u 2024-11-18 13:56:37

是的,通过张开耳朵是可能的。您可以借助 FliteController 查看 Openears 本身提供的示例项目。

有一种方法叫say。

例如

 -(void)viewDidLoad {
     [super viewDidLoad];
     // This is how to use an available instance of FliteController.
     [fliteController say:@"Welcome to OpenEars."]; 
 }

希望有帮助。

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.

 -(void)viewDidLoad {
     [super viewDidLoad];
     // This is how to use an available instance of FliteController.
     [fliteController say:@"Welcome to OpenEars."]; 
 }

Hope it helps.

老娘不死你永远是小三 2024-11-18 13:56:37

在要使用 FliteController 的类中,您需要导入 FliteController.h:

#import "FliteController.h"

接下来,您需要在正确配置的安装中打开 OpenEarsVoiceConfig.h,并取消注释您需要使用的语音,如该文件中所述。

然后,您可以实例化 FliteController 并使用未注释的声音向其发送以下消息:

[self.fliteController say:@"A phrase I'd like my app to speak out loud." withVoice:@"cmu_us_awb8k"];

如果您清楚如何实例化该对象并且 OpenEars 的安装正确,那么这就足够了。如果没有,以下 URL 提供了更多详细信息:

http://www.politepix。 com/openears/yourapp/

In a class in which you want to use FliteController you need to import FliteController.h:

#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:

[self.fliteController say:@"A phrase I'd like my app to speak out loud." withVoice:@"cmu_us_awb8k"];

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/

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