speechsynthesis.getVoices()在Safari上返回一个空阵列
有问题的问题似乎是一段时间。
尝试解决此问题的一种方法是使用建议的语音对象,如建议在这里。但是,我尚不清楚如何使用这样的对象: {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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论