Add multilingual support for TTS (Text-to-Speech) functionality. (#6369)

This commit is contained in:
chenxu9741 2024-07-17 14:41:29 +08:00 • committed by GitHub
commit ca69e1a2f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 27 additions and 15 deletions

View file

@ -60,21 +60,6 @@ export default class AudioPlayer {
return
this.sourceBuffer = this.mediaSource?.addSourceBuffer(contentType)
// this.sourceBuffer?.addEventListener('update', () => {
// if (this.cacheBuffers.length && !this.sourceBuffer?.updating) {
// const cacheBuffer = this.cacheBuffers.shift()!
// this.sourceBuffer?.appendBuffer(cacheBuffer)
// }
// // this.pauseAudio()
// })
//
// this.sourceBuffer?.addEventListener('updateend', () => {
// if (this.cacheBuffers.length && !this.sourceBuffer?.updating) {
// const cacheBuffer = this.cacheBuffers.shift()!
// this.sourceBuffer?.appendBuffer(cacheBuffer)
// }
// // this.pauseAudio()
// })
})
}