Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add tts Switch to chat configuration modal #2088 #2206

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions web/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions web/src/locales/zh-traditional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ export default {
uploadFailed: '上傳失敗',
regenerate: '重新生成',
read: '朗讀內容',
tts: '文字轉語音',
ttsTip: '是否用語音轉換播放語音,請先在設定裡面選擇TTS(語音轉換模型)。',
},
setting: {
profile: '概述',
Expand Down
2 changes: 2 additions & 0 deletions web/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ export default {
uploadFailed: '上传失败',
regenerate: '重新生成',
read: '朗读内容',
tts: '文本转语音',
ttsTip: '是否用语音转换播放语音,请先在设置里面选择TTS(语音转换模型)。',
},
setting: {
profile: '概要',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
>
<Switch />
</Form.Item>
<Form.Item
label={t('tts')}
valuePropName="checked"
name={['prompt_config', 'tts']}
tooltip={t('ttsTip')}
initialValue={false}
>
<Switch />
</Form.Item>
<KnowledgeBaseItem></KnowledgeBaseItem>
</section>
);
Expand Down