Ubuntu 20.04及以上Chrome中onBoundary事件不触发问题
关于SpeechSynthesisUtterance onBoundary事件在Linux Chrome下不触发的问题
好例子胜过长篇大论,对吧?
示例代码如下:
utter = new SpeechSynthesisUtterance() utter.onboundary = console.log utter.lang = 'en-US' utter.text = 'This is a sentence' window.speechSynthesis.speak(utter)
在Ubuntu 22.04系统的Chrome版本109.0.5414.74(官方版本,64位)中,onBoundary事件从未触发。
注意:上述代码片段在Chrome中无法直接运行,但复制到开发者工具控制台可运行,不过onBoundary事件仍未触发。
请问该事件在您的环境中能正常触发吗?
补充:经多浏览器与系统测试,这似乎是仅Linux下Chrome/Chromium存在的bug。
内容的提问来源于stack exchange,提问作者Sharcoux
相关产品推荐
相关产品推荐

