mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 03:06:07 +08:00
### What problem does this PR solve? feat: Add tts Switch to chat configuration modal #2088 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
e949594579
commit
9081bc969a
@ -427,6 +427,9 @@ The above is the content you need to summarize.`,
|
|||||||
uploadFailed: 'Upload failed',
|
uploadFailed: 'Upload failed',
|
||||||
regenerate: 'Regenerate',
|
regenerate: 'Regenerate',
|
||||||
read: 'Read content',
|
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: {
|
setting: {
|
||||||
profile: 'Profile',
|
profile: 'Profile',
|
||||||
|
@ -397,6 +397,8 @@ export default {
|
|||||||
uploadFailed: '上傳失敗',
|
uploadFailed: '上傳失敗',
|
||||||
regenerate: '重新生成',
|
regenerate: '重新生成',
|
||||||
read: '朗讀內容',
|
read: '朗讀內容',
|
||||||
|
tts: '文字轉語音',
|
||||||
|
ttsTip: '是否用語音轉換播放語音,請先在設定裡面選擇TTS(語音轉換模型)。',
|
||||||
},
|
},
|
||||||
setting: {
|
setting: {
|
||||||
profile: '概述',
|
profile: '概述',
|
||||||
|
@ -414,6 +414,8 @@ export default {
|
|||||||
uploadFailed: '上传失败',
|
uploadFailed: '上传失败',
|
||||||
regenerate: '重新生成',
|
regenerate: '重新生成',
|
||||||
read: '朗读内容',
|
read: '朗读内容',
|
||||||
|
tts: '文本转语音',
|
||||||
|
ttsTip: '是否用语音转换播放语音,请先在设置里面选择TTS(语音转换模型)。',
|
||||||
},
|
},
|
||||||
setting: {
|
setting: {
|
||||||
profile: '概要',
|
profile: '概要',
|
||||||
|
@ -99,6 +99,15 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
|
|||||||
>
|
>
|
||||||
<Switch />
|
<Switch />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label={t('tts')}
|
||||||
|
valuePropName="checked"
|
||||||
|
name={['prompt_config', 'tts']}
|
||||||
|
tooltip={t('ttsTip')}
|
||||||
|
initialValue={false}
|
||||||
|
>
|
||||||
|
<Switch />
|
||||||
|
</Form.Item>
|
||||||
<KnowledgeBaseItem></KnowledgeBaseItem>
|
<KnowledgeBaseItem></KnowledgeBaseItem>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user