Skip to content

Commit

Permalink
Update speechrecognition.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Aug 4, 2019
1 parent 1f23f57 commit 8012db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myBlockly/SpeechRecognition/speechrecognition.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ if ('webkitSpeechRecognition' in window) {
}
final_transcript = capitalize(final_transcript);
Recognition_interim = linebreak(interim_transcript);
console.log("interim = " + Recognition_interim);
if (Recognition_interim.trim()=='') {
if (Recognition_interim=='') {
Recognition_final = linebreak(final_transcript);
console.log("final = " + Recognition_final);
}
Expand All @@ -56,6 +55,7 @@ if ('webkitSpeechRecognition' in window) {
document.body.appendChild(obj);
}
document.getElementById("showText").innerHTML = Recognition_interim;
console.log("interim = " + Recognition_interim);
}
};
}
Expand Down

0 comments on commit 8012db1

Please sign in to comment.