mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
374f647048
commit
d7ce408d25
1 changed files with 18 additions and 14 deletions
|
|
@ -131,6 +131,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const playAudio = (idx) => {
|
const playAudio = (idx) => {
|
||||||
|
if ($showCallOverlay) {
|
||||||
return new Promise((res) => {
|
return new Promise((res) => {
|
||||||
assistantAudioIdx = idx;
|
assistantAudioIdx = idx;
|
||||||
const audioElement = document.getElementById('audioElement');
|
const audioElement = document.getElementById('audioElement');
|
||||||
|
|
@ -149,6 +150,9 @@
|
||||||
res(e);
|
res(e);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
return Promise.resolve();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getOpenAISpeech = async (text) => {
|
const getOpenAISpeech = async (text) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue