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
parent 20f73cb756
commit ca69e1a2f5
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()
// })
})
}