iOS Text To Speech Api
问题 I can't seem to find anything on this. Are there any Siri classes or API's in iOS7 that let you do text to speech? All I am trying to do is something like the following: [siriInstance say:@"This is a test"]; And then have Siri say it from my app. It seems we should be capable of doing this, no? Seems like a trivial thing. 回答1: Since iOS 7 you have a new TTS Api. In Objective C AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance =