From 5d8fa2c7afc83628c70344231221ee685d457e3d Mon Sep 17 00:00:00 2001 From: "Charlie.Wei" Date: Fri, 16 Feb 2024 00:15:22 +0800 Subject: [PATCH] Tts add voice choose (#2452) Co-authored-by: luowei Co-authored-by: crazywoola <427733928@qq.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> --- .../config-voice/param-config-content.tsx | 7 +++++-- web/i18n/lang/common.en.ts | 12 ++++++++++++ web/i18n/lang/common.pt.ts | 12 ++++++++++++ web/i18n/lang/common.zh.ts | 12 ++++++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/web/app/components/app/configuration/config-voice/param-config-content.tsx b/web/app/components/app/configuration/config-voice/param-config-content.tsx index d055808692..2eae80decd 100644 --- a/web/app/components/app/configuration/config-voice/param-config-content.tsx +++ b/web/app/components/app/configuration/config-voice/param-config-content.tsx @@ -69,7 +69,9 @@ const VoiceParamConfig: FC = () => { >
- {languageItem?.name ?? localLanguagePlaceholder} + + {t(`common.voice.language.${languageItem?.value.replace('-', '')}`) ?? localLanguagePlaceholder} + { > {({ /* active, */ selected }) => ( <> - {item.name} + {t(`common.voice.language.${(item.value).toString().replace('-', '')}`)} {(selected || item.value === textToSpeechConfig.language) && (