diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index 58e092d8a3..3961f6dc75 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -1336,7 +1336,7 @@ "enable_privacy_mode": "匿名发送错误报告和数据统计" }, "tts": { - "title": "语音合成设置", + "title": "语音设置", "enable": "启用语音合成", "enable.help": "启用后可以将文本转换为语音", "reset": "重置", diff --git a/src/renderer/src/pages/settings/TTSSettings/TTSSettings.tsx b/src/renderer/src/pages/settings/TTSSettings/TTSSettings.tsx index df350d00fa..74b3aafc08 100644 --- a/src/renderer/src/pages/settings/TTSSettings/TTSSettings.tsx +++ b/src/renderer/src/pages/settings/TTSSettings/TTSSettings.tsx @@ -34,7 +34,6 @@ import { } from '..' const CustomVoiceInput = styled.div` - margin-top: 16px; display: flex; flex-direction: column; gap: 8px; @@ -66,6 +65,10 @@ const FlexContainer = styled.div` const FilterOptionItem = styled.div` margin-bottom: 16px; + display: flex; + flex-direction: row; + align-items: center; + gap: 10px; ` const LengthLabel = styled.span` @@ -378,9 +381,7 @@ const TTSSettings: FC = () => { {t('settings.tts.title')} - - {t('settings.tts.enable')} @@ -406,12 +407,9 @@ const TTSSettings: FC = () => { {t('settings.tts.reset_help')} - - - {t('settings.tts.api_settings')} -
+ {/* TTS服务类型选择 */} @@ -711,12 +709,8 @@ const TTSSettings: FC = () => {
- - - - - {t('settings.tts.help')} -
+ + {t('settings.tts.help')} {t('settings.tts.learn_more')} diff --git a/src/renderer/src/store/settings.ts b/src/renderer/src/store/settings.ts index cb51b792b9..bc3340eea6 100644 --- a/src/renderer/src/store/settings.ts +++ b/src/renderer/src/store/settings.ts @@ -232,7 +232,7 @@ export const initialState: SettingsState = { enableDataCollection: false, // TTS配置 ttsEnabled: false, - ttsServiceType: 'openai', // 默认使用OpenAI TTS + ttsServiceType: 'openai', // 默认使用 OpenAI TTS ttsApiKey: '', ttsApiUrl: 'https://api.openai.com/v1/audio/speech', ttsVoice: '',