mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 22:39:03 +00:00
fix: elevenlabs tts
This commit is contained in:
parent
d2664ab2a6
commit
79562a2531
@ -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;
|
||||||
|
@ -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) => {
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user