Today inadvertently looking at the cat review element found that the HTML Speech Input API aims to provide Web developers with features that are typically not available W Hen using standard speech recognition software to replace keyboard input in a Web browser
This is excerpted from http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/ Api-draft.html, from which we can know that this is a feature that enables speech recognition to replace keyboard input.
Its implementation is relatively simple, only in the input tag after adding X-webkit-speech, for <input type= "text" X-WEBKIT-SPEECH/>
If you need to change the event according to Audible voice, you can use Onspeechchange to trigger the event.
<script type= "Text/javascript" >
function Startsearch (event) {
event.target.form.submit ();
}
</script>
<form action= "Http://www.google.com/search" >
<input type= "search" name= "Q" speech Required onspeechchange= "Startsearch" >
</form>
Just that URL to the content of the resolution more detailed, if necessary, you can copy the link to see.