feat(settings): 增加自动语音播报设置选项

在 VoiceInputSettings 组件中添加了自动语音播报(TTS)的设置选项。用户可以通过开关来启用或禁用此功能。
This commit is contained in:
Lexcubia 2025-04-27 18:11:57 +08:00
parent a101fc182b
commit a048f4bc2b
2 changed files with 10 additions and 1 deletions

View File

@ -8,6 +8,13 @@
@change="updateSettings"
/>
</div>
<div class="settings-item">
<span class="settings-label">自动语音播报</span>
<el-switch
v-model="voiceInputSettings.autoTTS"
@change="updateSettings"
/>
</div>
</div>
</template>

View File

@ -29,9 +29,11 @@ export const useSettingsStore = defineStore('settings', {
theme: 'default',
// 动画效果开关
animationsEnabled: true,
// 语音输入设置
// 语音设置
voiceInputSettings: {
sendDirectly: true, // 语音转文字后直接发送
// 自动文字语音播报
autoTTS: false,
},
}),