fix: elevenlabs tts

This commit is contained in:
Timothy J. Baek 2024-07-19 13:30:36 +02:00
parent d2664ab2a6
commit 79562a2531
3 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@
tts: { tts: {
OPENAI_API_BASE_URL: TTS_OPENAI_API_BASE_URL, OPENAI_API_BASE_URL: TTS_OPENAI_API_BASE_URL,
OPENAI_API_KEY: TTS_OPENAI_API_KEY, OPENAI_API_KEY: TTS_OPENAI_API_KEY,
TTS_API_KEY: TTS_API_KEY, API_KEY: TTS_API_KEY,
ENGINE: TTS_ENGINE, ENGINE: TTS_ENGINE,
MODEL: TTS_MODEL, MODEL: TTS_MODEL,
VOICE: TTS_VOICE VOICE: TTS_VOICE
@ -88,7 +88,7 @@
console.log(res); console.log(res);
TTS_OPENAI_API_BASE_URL = res.tts.OPENAI_API_BASE_URL; TTS_OPENAI_API_BASE_URL = res.tts.OPENAI_API_BASE_URL;
TTS_OPENAI_API_KEY = res.tts.OPENAI_API_KEY; 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_ENGINE = res.tts.ENGINE;
TTS_MODEL = res.tts.MODEL; TTS_MODEL = res.tts.MODEL;

View File

@ -218,7 +218,7 @@
if ((message?.content ?? '').trim() !== '') { if ((message?.content ?? '').trim() !== '') {
speaking = true; speaking = true;
if ($config.audio.tts.engine === 'openai') { if ($config.audio.tts.engine !== '') {
loadingSpeech = true; loadingSpeech = true;
const sentences = extractSentences(message.content).reduce((mergedTexts, currentText) => { const sentences = extractSentences(message.content).reduce((mergedTexts, currentText) => {

View File

@ -181,7 +181,7 @@
</div> </div>
</div> </div>
</div> </div>
{:else if $config.audio.tts.engine === 'openai'} {:else if $config.audio.tts.engine !== ''}
<div> <div>
<div class=" mb-2.5 text-sm font-medium">{$i18n.t('Set Voice')}</div> <div class=" mb-2.5 text-sm font-medium">{$i18n.t('Set Voice')}</div>
<div class="flex w-full"> <div class="flex w-full">