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
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()
// })
})
}

View File

@ -317,6 +317,9 @@ const translation = {
language: 'Idioma',
resolutionTooltip: 'Soporte de idioma para voz a texto.',
voice: 'Voz',
autoPlay: 'Auto-reproducción',
autoPlayEnabled: 'Abierto',
autoPlayDisabled: 'Cierre',
},
},
openingStatement: {

View File

@ -322,6 +322,9 @@ const translation = {
language: 'Langue',
resolutionTooltip: 'Support de la langue pour la voix de synthèse de texte.',
voice: 'Voix',
autoPlay: 'Lecture Automatique',
autoPlayEnabled: 'Allumer',
autoPlayDisabled: 'Fermeture',
},
},
openingStatement: {

View File

@ -349,6 +349,9 @@ const translation = {
language: 'भाषा',
resolutionTooltip: 'टेक्स्ट-टू-स्पीच वॉयस सपोर्ट भाषा।',
voice: 'वॉयस',
autoPlay: 'ऑटो प्ले',
autoPlayEnabled: 'चालू करणे',
autoPlayDisabled: 'सोडा',
},
},
openingStatement: {

View File

@ -316,6 +316,9 @@ const translation = {
language: '언어',
resolutionTooltip: '텍스트 읽기 음성 언어를 지원합니다.',
voice: '음성',
autoPlay: '자동 재생',
autoPlayEnabled: '켜다',
autoPlayDisabled: '폐쇄',
},
},
openingStatement: {

View File

@ -347,6 +347,9 @@ const translation = {
language: 'Język',
resolutionTooltip: 'Wsparcie językowe głosu tekstu na mowę.',
voice: 'Głos',
autoPlay: 'Automatyczne odtwarzanie',
autoPlayEnabled: 'włączyć coś',
autoPlayDisabled: 'zamknięcie',
},
},
openingStatement: {

View File

@ -322,6 +322,9 @@ const translation = {
language: 'línguas',
resolutionTooltip: 'Texto para voz timbre suporta idiomas.',
voice: 'voz',
autoPlay: 'Reprodução automática',
autoPlayEnabled: 'ligar',
autoPlayDisabled: 'fecho',
},
},
openingStatement: {

View File

@ -322,6 +322,9 @@ const translation = {
language: 'Limbă',
resolutionTooltip: 'Suport pentru limba de voce text-to-speech.',
voice: 'Voce',
autoPlay: 'Redare automata',
autoPlayEnabled: 'Deschis',
autoPlayDisabled: 'închidere',
},
},
openingStatement: {

View File

@ -316,6 +316,9 @@ const translation = {
language: 'Мова', // Language
resolutionTooltip: 'Мовна підтримка для синтезу мовлення.', // Text-to-speech voice support language。
voice: 'Голос', // Voice
autoPlay: 'Автоматичне відтворення',
autoPlayEnabled: 'ВІДЧИНЕНО',
autoPlayDisabled: 'закриття',
},
},
openingStatement: {

View File

@ -322,6 +322,9 @@ const translation = {
language: 'Ngôn ngữ',
resolutionTooltip: 'Giọng nói văn bản hỗ trợ ngôn ngữ。',
voice: 'Giọng',
autoPlay: 'chạy tự động',
autoPlayEnabled: 'bật',
autoPlayDisabled: 'Khép kín',
},
},
openingStatement: {