接入语音

This commit is contained in:
aixianling
2023-11-10 17:36:00 +08:00
parent 24a775f94a
commit 1ab65db585

View File

@@ -65,7 +65,8 @@ export default {
throttle(() => {
this.speech.text = text
// this.speech.voice = speechSynthesis.getVoices()[13]
load(!synth.speaking).then(() => synth.speak(this.speech))
synth.cancel()
synth.speak(this.speech)
})
}
},