Google Chrome has very good browser speech recognition control. For example, if I put this html tag:
<input id="speech" type="text" speech="speech" x-webkit-speech="x-webkit-speech" onspeechchange="processspeech();" onwebkitspeechchange="processspeech();" />
with it corresponding javascript:
<script type="text/javascript">
function processspeech() {
var speechtext = $("#speech").val();
alert(speechtext);
}
</script>
then i can use google speech recognition. I am wondering if it is possible to direct a click on this input control to activate it using JavaScript. In other words, I want to start recording a message by pressing a button other than a small microphone. I plan to use the site locally, so maybe I can send the click in another way.
source
share