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 3, 2019
1 parent c39848b commit 2224b58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ESP32_SpeechRecognition.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@
var strUrl=location.search;
if (strUrl.indexOf("?")!=-1) {
var STAIP = strUrl.split("?")[1].split("&")[0];
var Lang = strUrl.split("?")[1].split("&")[1];
var language = strUrl.split("?")[1].split("&")[1];
}
if (Lang=="")
if (language=="")
recognition.lang="en-NZ";
else
recognition.lang=Lang;
recognition.lang=language;

if (!recognizing) startButton(event);
setInterval(async function(){
Expand Down

0 comments on commit 2224b58

Please sign in to comment.