speechsynthesis.getVoices()在Safari上返回一个空阵列

发布于 2025-01-24 13:38:53 字数 627 浏览 3 评论 0原文

有问题的问题似乎是一段时间

尝试解决此问题的一种方法是使用建议的语音对象,如建议在这里。但是,我尚不清楚如何使用这样的对象: {name:“ samantha(增强)”,fooduri:“ com.apple.ttsbundle.samantha-promium”,lang:“ en-us”,localservice:true of true,default,“ true}

to to实例化SecemsynthesisVoice对象。

是否有人会遇到过实例化segredsyntheasyvoice对象作为一系列可用声音的解决方法的方法?谢谢!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文