-2

I have a quiz and I want that my app read the question and the responses to the user. Is there any iOS lib to use?

esqew
  • 42,425
  • 27
  • 92
  • 132
Taieb
  • 19
  • 5
  • Better read this: http://stackoverflow.com/questions/3552250/voice-output-in-ios/20748015#20748015 – idmean Aug 15 '14 at 10:48

1 Answers1

1

Take a look at the AVSpeechSynthesizer class (https://developer.apple.com/Library/ios/documentation/AVFoundation/Reference/AVSpeechSynthesizer_Ref/Reference/Reference.html).

AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:@"Your text"];
AVSpeechSynthesizer *speechSynthesizer = [[AVSpeechSynthesizer alloc] init];
[speechSynthesizer speakUtterance:utterance];
olicarbo
  • 150
  • 5