我在Windows 10上使用Chrome版本55.0.2883.87 m(64位).
以下简单的html文件重现了该问题,并从我更复杂的应用程序中提取.它应该在页面加载时说出3个单词.它适用于MS Edge和Firefox,但不适用于chrome.几个星期前,这段代码在我的Chrome上工作没问题.
<html>
<head>
<script lang="javascript">
window.speechSynthesis.speak(new SpeechSynthesisUtterance("cat"));
window.speechSynthesis.speak(new SpeechSynthesisUtterance("dog"));
window.speechSynthesis.speak(new SpeechSynthesisUtterance("bark"));
</script>
</head>
<body></body>
</html>
Run Code Online (Sandbox Code Playgroud)