<script>
const voices = speechSynthesis.getVoices()
function speakbyvoice(text, voice) {
var utter = new SpeechSynthesisUtterance(text)
for (let v of voices) {
if (v.name.includes(voice)) {
utter.voice = v
break
}
}
speechSynthesis.speak(utter)
return utter
}
speakbyvoice("你好中国", "Xiaoxiao")
</script>
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 周易算命 查询128 IP查询 电脑硬件工具