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 9a1e928 commit f751e56
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 @@ -11,7 +11,7 @@
}
</script>
</head>
<body onclick="if (Lang.trim()!='') document.getElementById('lang').value=Lang;">
<body onclick="if (Lang) document.getElementById('lang').value=Lang;">
Language
<select id="lang" name="lang" onclick="recognition.lang=this.value;try{startButton(event);}catch(e){}">
<option value="en-NZ">en-NZ</option>
Expand Down Expand Up @@ -124,7 +124,7 @@
<div id="command" style="color:blue;font-weight:bold;"></div>

<script>
if (Lang.trim()=="") recognition.lang="en-NZ";
if (Lang) recognition.lang="en-NZ";
if (!recognizing) startButton(event);
setInterval(async function(){
Result = (Recognition_final_get());
Expand Down

0 comments on commit f751e56

Please sign in to comment.