Is there an API for Google's speech recognitio

2019-01-21 13:56发布

I want to try creating a jQuery slideshow using simple voice commands like "next" or "previous". Is there a way to use Google's voice recognition? I know about Chrome's x-webkit-speech, but I have to click a button to use it.

I tried MIT's WAMI, but I found it slower and less accurate than Google's speech cognition.

4条回答
Evening l夕情丶
2楼-- · 2019-01-21 14:34
不美不萌又怎样
3楼-- · 2019-01-21 14:38

I found this, I have not personally used it do I don't know if it is entirely what you are looking for but take a look.

http://captico.com/introducing-speech-2-text-api-by-google/2011/03

查看更多
劳资没心,怎么记你
4楼-- · 2019-01-21 14:40

The issue is what will capture your user's speech and send it some speech server for processing. x-webkit-speech is built into the browser and the browser uses the PC's sound card to capture speech. Javascript/Jquery in a browser alone cannot access the hardware devices. I do not know if Chrome exposes any x-webkit-speech objects in the DOM so you can do capture through Javascript.

That said, people have reverse engineered the Google speech api and used it from code. See http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ for an example.

查看更多
Luminary・发光体
5楼-- · 2019-01-21 14:57

For an easy way to do this with JavaScript, check out annyang, which is a library that makes dealing with speech recognition super-easy.

查看更多
登录 后发表回答