2

The problem in question seems to have been going for a while.

One way to try and go around this is to use hard-coded voice objects as suggested here. However, it is unclear to me how to use an object like: { name: "Samantha (Enhanced)", voiceURI: "com.apple.ttsbundle.Samantha-premium", lang: "en-US", localService: true, "default": true }

to instantiate a SpeechSynthesisVoice object.

Has anyone come across a way to instantiate a SpeechSynthesisVoice object as a workaround for an empty array of available voices? Thanks!

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.