From 7bc19d8251feecad3d568798ff06796cac8fa3c3 Mon Sep 17 00:00:00 2001 From: kien duong Date: Fri, 8 May 2026 09:51:14 +0700 Subject: [PATCH] fix(web): explicitly resume AudioContext and play audio on first TTS load (#35901) --- web/app/components/base/audio-btn/audio.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/components/base/audio-btn/audio.ts b/web/app/components/base/audio-btn/audio.ts index 24615b333f..9d524640fa 100644 --- a/web/app/components/base/audio-btn/audio.ts +++ b/web/app/components/base/audio-btn/audio.ts @@ -136,6 +136,10 @@ export default class AudioPlayer { } else { this.isLoadData = true + this.audioContext.resume().then((_) => { + this.audio.play() + this.callback?.('play') + }) this.loadAudio() } }