From 1ab65db585248a94a6d1751d60431bca70ef5c39 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 10 Nov 2023 17:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E8=AF=AD=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/metaHuman.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/metaHuman.vue b/src/components/metaHuman.vue index c22039a..5f1089f 100644 --- a/src/components/metaHuman.vue +++ b/src/components/metaHuman.vue @@ -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) }) } },