const speak = (sentence) => { const utterance = new SpeechSynthesisUtterance(sentence); window.speechSynthesis.speak(utterance); }; speak('你好')
本文来自博客园,作者:小万子呀,转载请注明原文链接:https://www.cnblogs.com/newBugs/p/16325729.html