This commit is contained in:
Timothy Jaeryang Baek
2025-11-23 20:19:44 -05:00
parent 48d1e67e79
commit 0eb1246c87
2 changed files with 5 additions and 5 deletions
@@ -468,7 +468,7 @@
}
if ($settings.audio?.tts?.engine === 'browser-kokoro') {
const blob = await $TTSWorker
const url = await $TTSWorker
.generate({
text: content,
voice: $settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice
@@ -478,8 +478,8 @@
toast.error(`${error}`);
});
if (blob) {
audioCache.set(content, new Audio(blob));
if (url) {
audioCache.set(content, new Audio(url));
}
} else if ($config.audio.tts.engine !== '') {
const res = await synthesizeOpenAISpeech(