mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 19:38:54 +00:00
refac
This commit is contained in:
parent
6c862b8fbf
commit
f8ad74fc42
@ -1285,6 +1285,8 @@
|
||||
|
||||
stream = null;
|
||||
|
||||
if ($settings.audio?.tts?.engine === 'browser-kokoro') {
|
||||
// If the user has not initialized the TTS worker, initialize it
|
||||
if (!$TTSWorker) {
|
||||
await TTSWorker.set(
|
||||
new KokoroWorker({
|
||||
@ -1294,6 +1296,7 @@
|
||||
|
||||
await $TTSWorker.init();
|
||||
}
|
||||
}
|
||||
|
||||
showCallOverlay.set(true);
|
||||
showControls.set(true);
|
||||
|
Loading…
Reference in New Issue
Block a user