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

refac

parent edbd07f8
......@@ -234,6 +234,7 @@
console.log(sentences);
if (sentences.length > 0) {
sentencesAudio = sentences.reduce((a, e, i, arr) => {
a[i] = null;
return a;
......@@ -264,6 +265,10 @@
lastPlayedAudioPromise = lastPlayedAudioPromise.then(() => playAudio(idx));
}
}
} else {
speaking = null;
loadingSpeech = false;
}
} else {
let voices = [];
const getVoicesLoop = setInterval(async () => {
......
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