mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
fix: add self check to resume speech synthesis in ChatOperationButton
--bug=1058777 --user=刘瑞斌 【应用】开启语音自动播放,浏览器播放,暂停第一次对话的播放后,进行第二次对话,自动播放会先继续播放上一次对话 https://www.tapd.cn/62980211/s/1731474
This commit is contained in:
parent
95263d147b
commit
21c8f6ffbf
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue