AVSpeechUtterance not working on apple watch

import AVFoundation

Button {
let utterance = AVSpeechUtterance(string: "Hello world")
utterance.voice = AVSpeechSynthesisVoice(language: "en-GB")
utterance.rate = 1 

let synthesizer = AVSpeechSynthesizer()
synthesizer.speak(utterance)
} label: {
Text("hello")
}

i omitted some code but this is the core part. When i run this on apple watch se 2 simulator (watch os 10.5) nothing happens and gives the error

Query for com.apple.MobileAsset.VoiceServicesVocalizerVoice failed: 2
Unable to list voice folder
Query for com.apple.MobileAsset.VoiceServices.GryphonVoice failed: 2
Unable to list voice folder
Query for com.apple.MobileAsset.VoiceServices.CustomVoice failed: 2
Unable to list voice folder
Query for com.apple.MobileAsset.VoiceServices.GryphonVoice failed: 2
Unable to list voice folder

Thanks for the code snippet and sample logs, but having a full diagnostic from the device will give us valuable information about the whole technology stack involved with AVSpeechUtterance and the issue you're encountering.

Please file a bug report using the Feedback Assistant tool and feel free to include more sample code at https://developer.apple.com/bug-reporting/

After you create your report, reply here with the Feedback ID

AVSpeechUtterance not working on apple watch
 
 
Q