"examples/vscode:/vscode.git/clone" did not exist on "09903774d9b0166815115e0a0f711b82c59b949e"
Commit c954f1b4 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent edbd07f8
...@@ -234,6 +234,7 @@ ...@@ -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 @@ ...@@ -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 () => {
......
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