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 6, 2019
1 parent 44e6a6b commit 0ea6d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ESP32_SpeechRecognition.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
else {
document.getElementById("showText").innerHTML = "";
document.getElementById("result").innerHTML = Recognition_final;
document.getElementById("command").innerHTML = "http://" +STAIP + "?speech=" + Recognition_final.toLowerCase().trim() + ";" + document.getElementById("lang").value;
document.getElementById("command").innerHTML = "http://" +STAIP + "?speech=" + Recognition_final.toLowerCase().trim() + ";" + document.getElementById("lang").value + ";" + document.getElementById("chk").value;
if (document.getElementById("chk").checked == false) {
document.getElementById("showText").innerHTML = "";
document.getElementById("result").innerHTML = "";
Expand All @@ -223,7 +223,7 @@
else {
document.getElementById("showText").innerHTML = "";
document.getElementById("result").innerHTML = errTemp;
document.getElementById("command").innerHTML = "http://" +STAIP + "?speech=" + errTemp.toLowerCase().trim() + ";" + document.getElementById("lang").value;
document.getElementById("command").innerHTML = "http://" +STAIP + "?speech=" + errTemp.toLowerCase().trim() + ";" + document.getElementById("lang").value + ";" + document.getElementById("chk").value;
if (document.getElementById("chk").checked == false) {
document.getElementById("showText").innerHTML = "";
document.getElementById("result").innerHTML = "";
Expand Down

0 comments on commit 0ea6d29

Please sign in to comment.