From a048f4bc2b635347a540409cedd94d1e65416c8a Mon Sep 17 00:00:00 2001 From: Lexcubia Date: Sun, 27 Apr 2025 18:11:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(settings):=20=E5=A2=9E=E5=8A=A0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=AF=AD=E9=9F=B3=E6=92=AD=E6=8A=A5=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 VoiceInputSettings 组件中添加了自动语音播报(TTS)的设置选项。用户可以通过开关来启用或禁用此功能。 --- src/components/settings/VoiceInputSettings.vue | 7 +++++++ src/store/settings.js | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/settings/VoiceInputSettings.vue b/src/components/settings/VoiceInputSettings.vue index e891ffe..e6f1df4 100644 --- a/src/components/settings/VoiceInputSettings.vue +++ b/src/components/settings/VoiceInputSettings.vue @@ -8,6 +8,13 @@ @change="updateSettings" /> +
+ 自动语音播报 + +
diff --git a/src/store/settings.js b/src/store/settings.js index b0440d8..228af05 100644 --- a/src/store/settings.js +++ b/src/store/settings.js @@ -29,9 +29,11 @@ export const useSettingsStore = defineStore('settings', { theme: 'default', // 动画效果开关 animationsEnabled: true, - // 语音输入设置 + // 语音设置 voiceInputSettings: { sendDirectly: true, // 语音转文字后直接发送 + // 自动文字语音播报 + autoTTS: false, }, }),