Explorar el Código

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

chenxu9741 hace 9 meses
padre
commit
ca69e1a2f5

+ 0 - 15
web/app/components/base/audio-btn/audio.ts

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

+ 3 - 0
web/i18n/es-ES/app-debug.ts

@@ -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: {

+ 3 - 0
web/i18n/fr-FR/app-debug.ts

@@ -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: {

+ 3 - 0
web/i18n/hi-IN/app-debug.ts

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

+ 3 - 0
web/i18n/ko-KR/app-debug.ts

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

+ 3 - 0
web/i18n/pl-PL/app-debug.ts

@@ -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: {

+ 3 - 0
web/i18n/pt-BR/app-debug.ts

@@ -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: {

+ 3 - 0
web/i18n/ro-RO/app-debug.ts

@@ -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: {

+ 3 - 0
web/i18n/uk-UA/app-debug.ts

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

+ 3 - 0
web/i18n/vi-VN/app-debug.ts

@@ -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: {