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?
Asked
Active
Viewed 105 times
1 Answers
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