From 0ea6d29944eeededca5748b392f8cc53383c8ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=95=E8=98=AD=E6=96=AF?= <34397289+fustyles@users.noreply.github.com> Date: Tue, 6 Aug 2019 22:52:43 +0800 Subject: [PATCH] Update ESP32_SpeechRecognition.html --- ESP32_SpeechRecognition.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32_SpeechRecognition.html b/ESP32_SpeechRecognition.html index 9fb5043857..852d2d9285 100644 --- a/ESP32_SpeechRecognition.html +++ b/ESP32_SpeechRecognition.html @@ -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 = ""; @@ -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 = "";