Is it possible to access the speech synthesis feature of the iOS that is used for accessibility?
Asked
Active
Viewed 4,359 times
3
-
possible duplicate of [Text to speech on iPhone](http://stackoverflow.com/questions/416064/text-to-speech-on-iphone) – progrmr Sep 01 '10 at 23:25
3 Answers
6
Here is an example using AVSpeechSynthesizer
on iOS 7:
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init];
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Hey Guys"];
[synthesizer speakUtterance:utterance];
To change the voice use:
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"de-DE"];
To get a list of all voices:
NSLog(@"voices %@", [AVSpeechSynthesisVoice speechVoices]);

Klaas
- 22,394
- 11
- 96
- 107