mirror of
https://github.com/langgenius/dify.git
synced 2026-05-08 00:02:34 -04:00
fix(web): explicitly resume AudioContext and play audio on first TTS load (#35901)
This commit is contained in:
@@ -136,6 +136,10 @@ export default class AudioPlayer {
|
||||
}
|
||||
else {
|
||||
this.isLoadData = true
|
||||
this.audioContext.resume().then((_) => {
|
||||
this.audio.play()
|
||||
this.callback?.('play')
|
||||
})
|
||||
this.loadAudio()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user