接入语音
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user