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