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