Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm not sure if this is the right site for this question, but I was wondering how the voice activated search on Google's homepage works. Does it use Flash, some kind of plugin built into Google Chrome, or how does it use the microphone? This could be a dangerous privacy invasion if it is allowed to work the same way on any website, because no dialog asking for permission comes up, and I find this startling that Google (and who knows what other sites) can use my microphone without my permission. How is Google doing this? Javascript? Actionscript? Some custom plugin?

like image 805
bbosak Avatar asked Jun 17 '11 16:06

bbosak


People also ask

Is there an API for Google Voice?

Google Voice Actions gives you one API to support Android phones, tablets, and Android Wear watches.

Is Google speech API free?

Google Speech-to-Text is a well known speech transcription API. Google gives users 60 minutes free transcription, with $300 in free credits for Google Cloud hosting. However, since Google only supports transcribing files already in a Google Cloud Bucket, the free credits won't get you very far.

How does Google Search by voice work?

It works through the automatic speech recognition (ASR) system that transforms voice signal into text. Then search engines like Google use the text as if it's a typical search query and proceed with what they do best—matching the search query with the right results.


2 Answers

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/

like image 58
Jeff Avatar answered Oct 08 '22 22:10

Jeff


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.

like image 42
Curt Avatar answered Oct 08 '22 20:10

Curt