mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
Add multilingual support for TTS (Text-to-Speech) functionality. (#6369)
This commit is contained in:
parent
20f73cb756
commit
ca69e1a2f5
|
@ -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()
|
||||
// })
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -349,6 +349,9 @@ const translation = {
|
|||
language: 'भाषा',
|
||||
resolutionTooltip: 'टेक्स्ट-टू-स्पीच वॉयस सपोर्ट भाषा।',
|
||||
voice: 'वॉयस',
|
||||
autoPlay: 'ऑटो प्ले',
|
||||
autoPlayEnabled: 'चालू करणे',
|
||||
autoPlayDisabled: 'सोडा',
|
||||
},
|
||||
},
|
||||
openingStatement: {
|
||||
|
|
|
@ -316,6 +316,9 @@ const translation = {
|
|||
language: '언어',
|
||||
resolutionTooltip: '텍스트 읽기 음성 언어를 지원합니다.',
|
||||
voice: '음성',
|
||||
autoPlay: '자동 재생',
|
||||
autoPlayEnabled: '켜다',
|
||||
autoPlayDisabled: '폐쇄',
|
||||
},
|
||||
},
|
||||
openingStatement: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -316,6 +316,9 @@ const translation = {
|
|||
language: 'Мова', // Language
|
||||
resolutionTooltip: 'Мовна підтримка для синтезу мовлення.', // Text-to-speech voice support language。
|
||||
voice: 'Голос', // Voice
|
||||
autoPlay: 'Автоматичне відтворення',
|
||||
autoPlayEnabled: 'ВІДЧИНЕНО',
|
||||
autoPlayDisabled: 'закриття',
|
||||
},
|
||||
},
|
||||
openingStatement: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user