Use google “Speak Now” in C#

ε祈祈猫儿з 提交于 2019-12-07 03:08:12

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/6446341/use-google-speak-now-in-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!