Post

Replies

Boosts

Views

Activity

SpeechSynthesis rate is not adjustable
In my app I have: let utterance = AVSpeechUtterance(string: recognizedTextView.text) utterance.voice = AVSpeechSynthesisVoice(language: "zh-HK") utterance.rate = 0.3 synthesizer.speak(utterance) However, after I upgraded my iOS to 17.1.1 the speed doesn't get adjusted. I tried 0.01 and 0.3 for rate, and there is no difference.
0
0
579
Nov ’23
How to play .caf file
I tried to change my code from let urlString = Bundle.main.path(forResource: "X", ofType: "mp3")! to let urlString = Bundle.main.path(forResource: "X", ofType: "caf")! after I already uploaded the file. But it throws a fatal error: Unexpectedly found nil while unwrapping an Optional value I double check the filename and it's correct. and the caf file does play.
1
0
2.8k
Sep ’22