siri

iOS Text To Speech Api

纵饮孤独 提交于 2019-11-26 18:47:50
问题 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 =

How to use Speech Recognition inside the iOS SDK? [closed]

谁说胖子不能爱 提交于 2019-11-26 15:13:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I know that there is no public API for the SIRI-Services, but is there an API for simple Speech-Recognition? So if I have a textfield and the user taps onto that textfield, a keyboard with the typically microphone button appears and if he pressed it the speech get recognized and transformed into a string object?