Enter text by speech on web pages – Introduction to HTML5 Web Speech API Speech Recognition

         I mentioned the Web Speech API a long time ago , and now Chrome ‘s just released version 25 has support for this API for both desktop and Android , which is definitely a landmark event for web developers because we can Using speech recognition technology natively directly in Web Apps will open a new era of Web applications.

         I can’t control the excitement, I will give you the details of this API right away through an example .

Google specifically provides a native example to demonstrate the Web Speech API .

         Let’s take a look at the implementation code. First of all, we need to determine whether the browser supports Web Speech API . We pass whether it exists under the window .

This article is reprinted from https://blog.p2hp.com/archives/8533
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment