Post

Replies

Boosts

Views

Activity

AVSpeechSynthesizer error unable to list voice folder
IOS 16.4 let synthesizer = AVSpeechSynthesizer() private func speakText(text: String) { let utterance = AVSpeechUtterance(string: text) utterance.voice = AVSpeechSynthesisVoice(language: "en-US") utterance.rate = 0.5 synthesizer.speak(utterance) print("speak code run") } The above code works fine on the emulator but not on iphone 13 or ipad pro m1. Each time these errors 2023-04-02 22:34:43.418311+0200 [45953:4354804] [catalog] Unable to list voice folder speak code run 2023-04-02 22:34:43.447608+0200 [45953:4354804] [catalog] Unable to list voice folder 2023-04-02 22:34:43.452857+0200 [45953:4354804] [catalog] Unable to list voice folder 2023-04-02 22:34:43.471776+0200 [45953:4354804] [catalog] Unable to list voice folder 2023-04-02 22:34:43.618664+0200 [45953:4354804] [catalog] Query for com.apple.MobileAsset.VoiceServices.VoiceResources failed: 2 2023-04-02 22:34:43.798930+0200 [45953:4354957] [AXTTSCommon] Failure starting audio queue \M-3<…> 2023-04-02 22:34:45.812019+0200 [45953:4354957] [AXTTSCommon] Run loop timed out waiting for free audio buffer
1
0
1.6k
Apr ’23