テキストを話しているときにスピーチ速度を変更して、速度を知りたいです。
以下の2通りの方法でテストしましたが、話速は変わりません。
- (void)speechSynthesizer:(AVSpeechSynthesizer *)synthesizer willSpeakRangeOfSpeechString:NSRange)characterRange utterance:(AVSpeechUtterance *)utterance{
// 1. AVSpeechUtterance *SpeechUtterence;
SpeechUtterence.rate = fSpeechSpeed;
// 2. set fSpeechSpeed from other view
utterance.rate = fSpeechSpeed;
}