<input id="btn1" type="button" value="点我" onclick="test();" />
<script>
function test() {
const sos = `hi!不错哦`;
const synth = window.speechSynthesis;
let msg = new SpeechSynthesisUtterance(sos);
synth.speak(msg)
}
</script>
H5指定内容语言播放