From ebeb7a419c04b4c88908af643e1cd8ebfb57ebb8 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 20 Sep 2024 11:18:20 +0800 Subject: [PATCH] add voice --- app/store/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/store/config.ts b/app/store/config.ts index f7506b328..27532b316 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -83,12 +83,12 @@ export const DEFAULT_CONFIG = { }, ttsConfig: { - enable: false, + enable: true, autoplay: false, engine: DEFAULT_TTS_ENGINE, model: DEFAULT_TTS_MODEL, voice: DEFAULT_TTS_VOICE, - speed: 1.0, + speed: 1.1, }, }; @@ -180,7 +180,7 @@ export const useAppConfig = createPersistStore( }), { name: StoreKey.Config, - version: 4, + version: 4.1, merge(persistedState, currentState) { const state = persistedState as ChatConfig | undefined; @@ -227,7 +227,7 @@ export const useAppConfig = createPersistStore( state.lastUpdate = Date.now(); } - if (version < 4) { + if (version < 4.1) { state.modelConfig.compressModel = DEFAULT_CONFIG.modelConfig.compressModel; state.modelConfig.compressProviderName =