fix: call tts issue

This commit is contained in:
Timothy J. Baek 2024-10-05 10:42:06 -07:00
parent 12a6216477
commit 9ca2350a13

View File

@ -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);