我是 IOs 开发的新手。现在,我需要在我的应用程序中使用“文本到语音”功能,我发现 OpenEars 平台可以做到这一点。但在我的代码中,它只能在一个类中说出一个语句。我在 Google 上搜索,但我找不到如何使用 OpenEars 发表多个声明。这是我的代码:
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
[self.oEEO setDelegate:self];
[self.teller say:@"Hello World" withVoice:self.voice];
[self.teller say:@"Hello World Again !" withVoice:self.voice];
return YES;}
oEEO 是 OpenEarsEventsObserver
出纳员如何说“Hello World Again”?谢谢你的阅读!