fix: prevent overlapping speech synthesis playback
--bug=1058747 --user=刘瑞斌 【应用】应用开启语音播放自动播放,使用移动端提问后没有自动播放 https://www.tapd.cn/62980211/s/1731646
This commit is contained in:
parent
1b94f16e2a
commit
390faf2bf5
@ -474,6 +474,9 @@ class AudioManage {
|
||||
}
|
||||
// 等待取消完成后重新播放
|
||||
setTimeout(() => {
|
||||
if (speechSynthesis.speaking) {
|
||||
return
|
||||
}
|
||||
speechSynthesis.speak(audioElement)
|
||||
this.statusList[index] = AudioStatus.PLAY_INT
|
||||
}, 500)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user