treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Speech Recognition in Chrome

  • Hey guys,

    Not really a discussion, but more of a tip. I stumpled on x-webkit-speech the other day and thought it was pretty cool so I whipped up a demo and tutorial.

    image

    So basically you can turn on speech recognition for any old input in Google Chrome using the x-webkit-speech boolean. You can try out the demo and reed the full tutorial here: http://ahrengot.com/tutorials/speak-to-your-inputs/

    The demo is also available on Github https://github.com/Ahrengot/speech-recognition

    Also, is this something you've ever used on a live site? I think it's pretty gimmicky, but could see use cases where it would be cool.

  • I think one case where it might be useful is on a search engine, like if Google implemented it on their homepage. I definitely think that it isn't a good idea to enable it on every input on your page.