How Google Voice Search works? Is there an API for that?

女生的网名这么多〃 提交于 2019-11-29 20:18:22

It's available to anyone. There's more information here:

http://chrome.blogspot.com/2011/04/everybodys-talking-and-translating-with.html

and an example here: http://www.web2voice.com/chrome-speech-input.html

I'm glad I'm not the only one who thinks the lack of a permissions prompt feels a little bit big-brother-esque.

It's using HTML5 speech input via <input type="text" x-webkit-speech />

as the name suggests, this only works in webkit. Not sure if there are alternatives for other browsers.

See http://jsfiddle.net/xYB3n/

A nice wrapper for the Web Speech API is available here: talater.com/annyang.

This library allows you to easily bind functions to voice commands, eg:

annyang.init({
    "help": function() {$("#help").show();}
});
annyang.start();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!