mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +00:00
refac
This commit is contained in:
parent
edbd07f893
commit
c954f1b4de
1 changed files with 28 additions and 23 deletions
|
|
@ -234,6 +234,7 @@
|
||||||
|
|
||||||
console.log(sentences);
|
console.log(sentences);
|
||||||
|
|
||||||
|
if (sentences.length > 0) {
|
||||||
sentencesAudio = sentences.reduce((a, e, i, arr) => {
|
sentencesAudio = sentences.reduce((a, e, i, arr) => {
|
||||||
a[i] = null;
|
a[i] = null;
|
||||||
return a;
|
return a;
|
||||||
|
|
@ -264,6 +265,10 @@
|
||||||
lastPlayedAudioPromise = lastPlayedAudioPromise.then(() => playAudio(idx));
|
lastPlayedAudioPromise = lastPlayedAudioPromise.then(() => playAudio(idx));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
speaking = null;
|
||||||
|
loadingSpeech = false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
let voices = [];
|
let voices = [];
|
||||||
const getVoicesLoop = setInterval(async () => {
|
const getVoicesLoop = setInterval(async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue