Commit d7ce408d authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 374f6470
......@@ -131,6 +131,7 @@
};
const playAudio = (idx) => {
if ($showCallOverlay) {
return new Promise((res) => {
assistantAudioIdx = idx;
const audioElement = document.getElementById('audioElement');
......@@ -149,6 +150,9 @@
res(e);
};
});
} else {
return Promise.resolve();
}
};
const getOpenAISpeech = async (text) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment