问题遇到的现象和发生背景
想要通过JS发出音效来进行提醒
想要通过JS发出音效来进行提醒
解决方法
使用SpeechSynthesisUtterance
即可
const utterance = new SpeechSynthesisUtterance('Here Here Here Here Here ');
window.speechSynthesis.speak(utterance);
参考链接:https://www.jb51.net/article/210945.htm
如有问题及时沟通