Voice recognition APIs, will Google Voice do this?

蓝咒 提交于 2019-12-03 15:03:22

问题


I've got an idea for an android app, I want to be able to say commands and have the application listen out for these and perform some action.

For example, I want my app to sit idle and listen for my voice, when it hears me say "start", the app will start doing something until I say "stop".

The idea is to lay the phone down and not have to physically touch it in order to control my app.

Would this be possible with any current APIs? If so which ones should I look into?


回答1:


You can take a look at the Google voice commands.

http://www.google.com/mobile/voice-actions/

Alternatively, if you want to customise your application, you can use the google voice service and write an activity that will invoke the voice service and return you the result. Check out the below link for the sample application.

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/VoiceRecognition.html



来源:https://stackoverflow.com/questions/4942808/voice-recognition-apis-will-google-voice-do-this

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