Skip to content

Commit 58db4ed

Browse files
committed
fix: update audio playback status to PLAY_INT when resuming speech synthesis
--bug=1058601 --user=刘瑞斌 【应用】浏览器播放-点击暂停&继续播放-连续两次相同操作-第二次未继续播放,而是重新播放了 https://www.tapd.cn/62980211/s/1729699
1 parent 41ad2ee commit 58db4ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ class AudioManage {
466466
} else {
467467
if (window.speechSynthesis.paused) {
468468
window.speechSynthesis.resume()
469+
this.statusList[index] = AudioStatus.PLAY_INT
469470
} else {
470471
// 如果不是暂停状态,取消当前播放并重新开始
471472
if (window.speechSynthesis.speaking) {

0 commit comments

Comments
 (0)