Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use google "Speak Now" in C#

Recently google announced a feature in Chrome browser to search text or translate texts using microphone.

http://www.seroundtable.com/google-search-speak-now-13346.html

I'd like to develop a C# desktop application to send voice to google and get the results back. How can it be done?

like image 406
Saber Avatar asked Jun 22 '11 20:06

Saber


People also ask

Can you use Google voice typing on PC?

Start voice typing in a documentOpen a document in Google Docs with a Chrome browser. Voice typing. A microphone box appears. When you're ready to speak, click the microphone.

Can Google Assistant dictate?

“Assistant voice typing” is more than just the hands-free dictation found in Gboard today. Users can edit and directly send messages entirely with their voice.


1 Answers

Google does not have a speech recognition API for desktops. They only have a speech recognition API for Android developers. However, you can download Microsoft's speech recognition API here: http://msdn.microsoft.com/en-us/library/ms723627(v=vs.85).aspx and you can read how to get it to work in C# here: http://windowscoding.com/blogs/blake/archive/2006/11/01/How-to-use-Microsofts-Speech-API-in-a-managed-application.aspx

Once you run the recognition api on the sample of text you want to recognize, you can simply call google.com with the "q" parameter to do a query search

Note too that Microsoft is not the only company with a speech recognition API. You are free to use any you want.

like image 55
Icemanind Avatar answered Oct 04 '22 23:10

Icemanind