今日学习了语音播报。
<script type="text/javascript">var msg= new window.SpeechSynthesisUtterance();msg.text = '你好,世界!';msg.lang="zh-CN";msg.volume = '1';msg.rate = 1;msg.pitch = 1;speechSynthesis.speak(msg); </script>