Skip to content

Commit

Permalink
Update ESP32_SpeechRecognition.html
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Aug 4, 2019
1 parent 27d0f71 commit 8f1e848
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ESP32_SpeechRecognition.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
if (Recognition_final.toLowerCase().trim()=="ok"||Recognition_final.toLowerCase().trim()=="okay") {
document.getElementById("showText").innerHTML = "";
document.getElementById("result").innerHTML = "";
location.href = document.getElementById("command").innerHTML;
location.href = document.getElementById("command").innerHTML;
return;
}
else {
document.getElementById("showText").innerHTML = "";
Expand All @@ -205,12 +206,15 @@
}
};
}

function linebreak(s) {
return s.replace(two_line, '<p></p>').replace(one_line, '<br>');
}

function capitalize(s) {
return s.replace(first_char, function(m) { return m.toUpperCase(); });
}

function startButton(event) {
if (recognizing) {
recognition.stop();
Expand Down

0 comments on commit 8f1e848

Please sign in to comment.