HTML5 Speech Input

Jun 04, 2011

The new features being introduced by the HTML5 standard are simply astounding. Just as the awe of one feature starts to wear off, I discover another that is even more awesome than the last. The current jaw dropping discovery is largely due to the Speech Input API Specification. Thats right, speech input.

You can add speech input to any input element by simply using the x-webkit-speech attribute.

The following code

<inputtype="text"x-webkit-speech/>

Will yield this

You can do other exciting actions language translations, or the famous voice search for android:

Although this currently only works in Chrome 11 and relies on Google's voice API, it is anticipated that more browsers will adopt the technology, and users will have the ability to choose which voice API they want to use.