From 9ca2350a13f6e7a82d42eeb638280c5f5c5c6ab7 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 5 Oct 2024 10:42:06 -0700 Subject: [PATCH] fix: call tts issue --- src/lib/components/chat/MessageInput/CallOverlay.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/MessageInput/CallOverlay.svelte b/src/lib/components/chat/MessageInput/CallOverlay.svelte index b5c8ea1df..6f3b465a6 100644 --- a/src/lib/components/chat/MessageInput/CallOverlay.svelte +++ b/src/lib/components/chat/MessageInput/CallOverlay.svelte @@ -456,7 +456,9 @@ if ($config.audio.tts.engine !== '') { const res = await synthesizeOpenAISpeech( localStorage.token, - $settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice, + $settings?.audio?.tts?.defaultVoice === $config.audio.tts.voice + ? ($settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice) + : $config?.audio?.tts?.voice, content ).catch((error) => { console.error(error);