diff --git a/src/lib/components/admin/Settings/Audio.svelte b/src/lib/components/admin/Settings/Audio.svelte index 8be5ee3ef..157e24420 100644 --- a/src/lib/components/admin/Settings/Audio.svelte +++ b/src/lib/components/admin/Settings/Audio.svelte @@ -61,7 +61,7 @@ tts: { OPENAI_API_BASE_URL: TTS_OPENAI_API_BASE_URL, OPENAI_API_KEY: TTS_OPENAI_API_KEY, - TTS_API_KEY: TTS_API_KEY, + API_KEY: TTS_API_KEY, ENGINE: TTS_ENGINE, MODEL: TTS_MODEL, VOICE: TTS_VOICE @@ -88,7 +88,7 @@ console.log(res); TTS_OPENAI_API_BASE_URL = res.tts.OPENAI_API_BASE_URL; TTS_OPENAI_API_KEY = res.tts.OPENAI_API_KEY; - TTS_API_KEY = res.tts.TTS_API_KEY; + TTS_API_KEY = res.tts.API_KEY; TTS_ENGINE = res.tts.ENGINE; TTS_MODEL = res.tts.MODEL; diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index a3500b77e..9fe8257c0 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -218,7 +218,7 @@ if ((message?.content ?? '').trim() !== '') { speaking = true; - if ($config.audio.tts.engine === 'openai') { + if ($config.audio.tts.engine !== '') { loadingSpeech = true; const sentences = extractSentences(message.content).reduce((mergedTexts, currentText) => { diff --git a/src/lib/components/chat/Settings/Audio.svelte b/src/lib/components/chat/Settings/Audio.svelte index 9df4300ce..2876321aa 100644 --- a/src/lib/components/chat/Settings/Audio.svelte +++ b/src/lib/components/chat/Settings/Audio.svelte @@ -181,7 +181,7 @@ - {:else if $config.audio.tts.engine === 'openai'} + {:else if $config.audio.tts.engine !== ''}