Anne Nonimus
Anne Nonimus

Reputation: 139

Voice Output in iOS

Is it possible to access the speech synthesis feature of the iOS that is used for accessibility?

Upvotes: 3

Views: 4377

Answers (3)

Klaas
Klaas

Reputation: 22763

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]);

Upvotes: 6

AlexWien
AlexWien

Reputation: 28727

Now, since ios7 you can use the built in AVSpeechSynthesizer

Upvotes: 0

Pablo Santa Cruz
Pablo Santa Cruz

Reputation: 181290

May be you can find this SO question helpful. FLITE also brings speech synthesis to iOS.

Upvotes: 1

Related Questions