我想不出如何使用iSpeech应用程序接口。我使用TTS和API实际上说话,但我想知道如何摆脱弹出框,当做语音合成时,因为我需要其他的UI工作,而这是正在进行。我在网上看到你需要使用REST API,但这在移动设备上是不受支持的。我需要一种隐藏对话框的方法。任何帮助都会很好。
发布于 2012-05-26 03:14:19
给你,给你。使用它的风险自负。
-(void) removeISpeechPopups
{
NSArray *windows = [[UIApplication sharedApplication] windows];
for (UIWindow *window in windows)
{
if ([NSStringFromClass([window class]) isEqualToString:@"ISPopupBackgroundView"])
{
// NOTE: Morally, I wouldn't do this. Simply for development,
// this is fine, but don't put this in a real application,
// as it takes away from iSpeech's revenue at the end of the day.
[window setHidden:YES];
}
}
}https://stackoverflow.com/questions/10760048
复制相似问题