6

問題:iOS 7.xとiOS 8.xでは、このコードは問題なく動作していますが、iOS 9.xの音声レートはiOSの音声レートに比べて遅くなります7 & 8.iOS7とiOS 9のAVSpeechSynthesizerの発声率が異なる

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]; 
+0

可能な重複http://stackoverflow.com/questions/32761786/ios9-avspeechutterance-rate-for - 発声合成装置 - 発行) – Gregarious

答えて

3

[utterance setRate: 0.5f];仕事をする

[AVSpeechSynthesizerの問題のためiOS9 AVSpeechUtterance率](の
+0

[発話速度:0.5f];これは確かに発言の速度を上げます。しかし、今やiOS 7とiOS 8では速くなりすぎます。 – Himz

+0

'if [[[UIDevice currentDevice] systemVersion] floatValue]> 8.5){ [発話設定:0.5f]; } else { [発話速度:0.1f]; } ' – Kaisp

+0

はい、これは私たちがやっていることですが、なぜそうですか?なぜ発声率が変化する – Himz

関連する問題