Problem: In iOS 7.x and iOS 8.x, this code works fine, but in iOS 9.x the speech speed becomes slower compared to the speech speed in iOS 7 and 8.
self.synthesizer = [[AVSpeechSynthesizer alloc] init]; self.synthesizer.delegate = self; AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:[NSString stringWithFormat:@"Hey %@, please choose places to explore or select excursions to see our custom crafted deals",[defaults objectForKey:@"USERNAME"]]]; utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"]; utterance.rate = 0.10; [self.synthesizer speakUtterance:utterance];
source share