You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 19:50:31