mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
add voice
This commit is contained in:
parent
8fedb17183
commit
ebeb7a419c
@ -83,12 +83,12 @@ export const DEFAULT_CONFIG = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
ttsConfig: {
|
ttsConfig: {
|
||||||
enable: false,
|
enable: true,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
engine: DEFAULT_TTS_ENGINE,
|
engine: DEFAULT_TTS_ENGINE,
|
||||||
model: DEFAULT_TTS_MODEL,
|
model: DEFAULT_TTS_MODEL,
|
||||||
voice: DEFAULT_TTS_VOICE,
|
voice: DEFAULT_TTS_VOICE,
|
||||||
speed: 1.0,
|
speed: 1.1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ export const useAppConfig = createPersistStore(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: StoreKey.Config,
|
name: StoreKey.Config,
|
||||||
version: 4,
|
version: 4.1,
|
||||||
|
|
||||||
merge(persistedState, currentState) {
|
merge(persistedState, currentState) {
|
||||||
const state = persistedState as ChatConfig | undefined;
|
const state = persistedState as ChatConfig | undefined;
|
||||||
@ -227,7 +227,7 @@ export const useAppConfig = createPersistStore(
|
|||||||
state.lastUpdate = Date.now();
|
state.lastUpdate = Date.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (version < 4) {
|
if (version < 4.1) {
|
||||||
state.modelConfig.compressModel =
|
state.modelConfig.compressModel =
|
||||||
DEFAULT_CONFIG.modelConfig.compressModel;
|
DEFAULT_CONFIG.modelConfig.compressModel;
|
||||||
state.modelConfig.compressProviderName =
|
state.modelConfig.compressProviderName =
|
||||||
|
Loading…
Reference in New Issue
Block a user