0
点赞
收藏
分享

微信扫一扫

speechSynthesis没有效果

工程与房产肖律师 2022-05-04 阅读 48
前端
    var utterThis = new window.SpeechSynthesisUtterance(str);
    window.speechSynthesis.cancel();
    window.speechSynthesis.speak(utterThis);

在调用speak之前先调用cancel

举报

相关推荐

0 条评论