master
funix 3 years ago
parent f87ecb0995
commit 42cb30e810

@ -1,3 +1,6 @@
// ARRAY DI PAROLE NORMALE, POI PYTHON -> split, for loop, POS e <span con classe POS in html
// The Myth of the Natural Language %%
// Speech2Design!!
@ -100,7 +103,7 @@ function startConverting() {
// console.log(event.results[i][0]);
transcript.replace("\n", "<br>");
if (event.results[i].isFinal) {
finalTranscripts += transcript;
finalTranscripts += '<span class="oneTranscript">'+transcript+'</span>';
} else { // There are also shown the interim results and according to their "confidence" (the percentage of how much the word is correct) the color of each word could change
interimTranscripts += transcript;
allTheInterim += `<span style="opacity: ${

Loading…
Cancel
Save