<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VoiceTest</title>
<script>
<!-- 和浏览器版本有关 -->
window.speechSynthesis.cancel()
let speechSynthesisUtterance = new SpeechSynthesisUtterance("你窝揍死个瓜皮");
speechSynthesisUtterance.lang='zh-CN'
speechSynthesisUtterance.volume='1'
speechSynthesisUtterance.rate='0.4'
speechSynthesisUtterance.pitch="1"
speechSynthesisUtterance.voiceURI=""
debugger
window.speechSynthesis.speak(speechSynthesisUtterance)
console.log(speechSynthesisUtterance);
console.log('--------');
</script>
</head>
<body>
</body>
</html>