Skip to content

Commit

Permalink
Update speechrecognition.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Oct 9, 2023
1 parent d283d36 commit 741e838
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions SpBlocklyJS/SpeechRecognition_20220729/speechrecognition.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ if ('webkitSpeechRecognition' in window) {
Recognition_final = linebreak(final_transcript);
document.getElementById("gamespan_recognition").innerHTML = Recognition_final;
if (typeof SpeechRecognition_interim === 'object' && SpeechRecognition_interim !== null) {
console.log(SpeechRecognition_interim.tagName.toLowerCase());
if (SpeechRecognition_interim.tagName.toLowerCase()=="input"||SpeechRecognition_interim.tagName.toLowerCase()=="textarea")
SpeechRecognition_interim.value = Recognition_final;
else
Expand All @@ -65,7 +64,6 @@ if ('webkitSpeechRecognition' in window) {
else {
Recognition_final = "";
document.getElementById("gamespan_recognition").innerHTML = Recognition_interim;
console.log(SpeechRecognition_interim.tagName.toLowerCase());
if (SpeechRecognition_interim.tagName.toLowerCase()=="input"||SpeechRecognition_interim.tagName.toLowerCase()=="textarea")
SpeechRecognition_interim.value = Recognition_interim;
else
Expand Down

0 comments on commit 741e838

Please sign in to comment.