var utterThis = new window.SpeechSynthesisUtterance(str);
window.speechSynthesis.cancel();
window.speechSynthesis.speak(utterThis);
在调用speak之前先调用cancel
var utterThis = new window.SpeechSynthesisUtterance(str);
window.speechSynthesis.cancel();
window.speechSynthesis.speak(utterThis);
在调用speak之前先调用cancel