mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: kokorojs tts
This commit is contained in:
parent
66ffd77f2c
commit
4ad7a9bb9c
1 changed files with 2 additions and 3 deletions
|
|
@ -279,7 +279,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const [idx, sentence] of messageContentParts.entries()) {
|
for (const [idx, sentence] of messageContentParts.entries()) {
|
||||||
const blob = await $TTSWorker
|
const url = await $TTSWorker
|
||||||
.generate({
|
.generate({
|
||||||
text: sentence,
|
text: sentence,
|
||||||
voice: $settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice
|
voice: $settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice
|
||||||
|
|
@ -292,8 +292,7 @@
|
||||||
loadingSpeech = false;
|
loadingSpeech = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (blob) {
|
if (url) {
|
||||||
const url = URL.createObjectURL(blob);
|
|
||||||
$audioQueue.enqueue(url);
|
$audioQueue.enqueue(url);
|
||||||
loadingSpeech = false;
|
loadingSpeech = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue