How can you make the android emulator support speech recognition

与世无争的帅哥 提交于 2019-12-03 21:00:08

问题


I am writing an app which uses android's speech recognition. However my app doesnt run well on the emulator - runs fine on the mobile itself however.

On the emulator I get a red error message through logcat which says:

05-06 20:19:38.527: ERROR/SpeechRecognizer(1745): no selected voice recognition service

Does anybody know how to enable an emulator to support speech recognition services?

Cheers,


回答1:


In your emulator image, can you install Google Voice Search as in Converting speech to text. The app is in the marketplace at https://market.android.com/details?id=com.google.android.voicesearch&feature=search_result. I think this is the only way to add the Recognizer Intent. Recognizer is not part of the base Android, it is considered an additional component that ships with Google Voice Search and is included in some phones.

But, people have still reported problems and suggest using a real device instead of the emulator. See Why is it impossible to use the Speech Recorder on the Android emulator?




回答2:


I have the same issue , I can do this in genymotion all you need to do install google apps on your genymotion full package as you can see it support Google TTS please have a look at this link

http://teckfront.com/download-android-4-3-jelly-bean-google-apps-gapps-full-mini-packages/

for others versions https://www.androidfilehost.com/?w=files&flid=5648



来源:https://stackoverflow.com/questions/5916521/how-can-you-make-the-android-emulator-support-speech-recognition

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