iSpeech API弹出窗口

时间:2012-05-25 19:05:00

标签: objective-c ios popupwindow ispeech

我无法弄清楚如何使用iSpeech API。我使用TTS并且API实际上说话,但我想知道如何摆脱在进行语音合成时出现的弹出框,因为我需要其他UI工作,而这正在进行。我在线阅读您需要使用REST API,但在移动设备上不支持。我需要一种隐藏对话框的方法。任何帮助都会很好。

1 个答案:

答案 0 :(得分:3)

在这里,你去吧。使用它需要您自担风险。

-(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];
        }
    }
}