From 21c8f6ffbf8267434034d28bd214a24ee3df4973 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 15 Jul 2025 12:01:49 +0800 Subject: [PATCH] fix: add self check to resume speech synthesis in ChatOperationButton MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1058777 --user=刘瑞斌 【应用】开启语音自动播放,浏览器播放,暂停第一次对话的播放后,进行第二次对话,自动播放会先继续播放上一次对话 https://www.tapd.cn/62980211/s/1731474 --- .../ai-chat/component/operation-button/ChatOperationButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue index 6a6018fd1..366e9895f 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -464,7 +464,7 @@ class AudioManage { this.statusList[index] = AudioStatus.ERROR } } else { - if (window.speechSynthesis.paused) { + if (window.speechSynthesis.paused && self) { window.speechSynthesis.resume() this.statusList[index] = AudioStatus.PLAY_INT } else {