From 2d135960597a0c1ce39c29be0eada14fcffa9823 Mon Sep 17 00:00:00 2001 From: bill Date: Tue, 3 Sep 2024 10:28:17 +0800 Subject: [PATCH] feat: Add tts Switch to chat configuration modal #2088 --- web/src/locales/en.ts | 3 +++ web/src/locales/zh-traditional.ts | 2 ++ web/src/locales/zh.ts | 2 ++ .../chat/chat-configuration-modal/assistant-setting.tsx | 9 +++++++++ 4 files changed, 16 insertions(+) diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index ad49c53a3f7..1b0dee25110 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -427,6 +427,9 @@ The above is the content you need to summarize.`, uploadFailed: 'Upload failed', regenerate: 'Regenerate', read: 'Read content', + tts: 'Text to speech', + ttsTip: + 'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.', }, setting: { profile: 'Profile', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index dc793d90570..8140f0b7fb5 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -397,6 +397,8 @@ export default { uploadFailed: '上傳失敗', regenerate: '重新生成', read: '朗讀內容', + tts: '文字轉語音', + ttsTip: '是否用語音轉換播放語音,請先在設定裡面選擇TTS(語音轉換模型)。', }, setting: { profile: '概述', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index c7b6ea2ce11..772e9a8faf5 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -414,6 +414,8 @@ export default { uploadFailed: '上传失败', regenerate: '重新生成', read: '朗读内容', + tts: '文本转语音', + ttsTip: '是否用语音转换播放语音,请先在设置里面选择TTS(语音转换模型)。', }, setting: { profile: '概要', diff --git a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx index b99ce7b52e9..7e2fb27365f 100644 --- a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx +++ b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx @@ -99,6 +99,15 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => { > + + + );