The HTML powerful features that everyone wants to use in the future can be used to add the voice function directly to the input box. Let ’s take a look at the implementation method first.
You can see the microphone icon on the right side of the input box. Click the microphone to recognize voice.
In fact, it is very simple. Voice recognition is the basic function of HTML5. Its usage is
<input type = Text Speech x-weight-site-
If you like XHTML similar grammar, you can express it like this
<input type = Text x-webkit-sitech = x-webkit-site- />
Voice recognition was incredible ten years ago. Even in the past few years, voice recognition on the webpage can only be implemented in other ways, such as using Flashplayer and so on. But now, you only need to simply add a attribute tag to the input box to identify.
Mobile devices such as browsers on mobile phones, as long as HTML5 supports HTML5, should also support voice recognition. Try your Android browse this web?
In addition, if you want to use JavaScript to obtain the end of this event, you can use onwebkitspeeeeeechchange
<input type = Text Speech x -webkit-site-site-onwebkitspenedChange = ALERT (this.value) />
The above is the implementation method of adding voice input functions to the HTML5 introduced by the editor to you. I hope it will be helpful to everyone. If you have any questions, please leave me a message. Xiaobian will reply to everyone in time. Thank you very much for your support for the VEVB Wulin website!