java 如何让安卓模拟器支持语音识别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5916521/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can you make the android emulator support speech recognition
提问by RenegadeAndy
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.
我正在编写一个使用 android 语音识别的应用程序。但是,我的应用程序在模拟器上运行不佳 - 但是在移动设备上运行良好。
On the emulator I get a red error message through logcat which says:
在模拟器上,我通过 logcat 收到一条红色错误消息,其中说:
05-06 20:19:38.527: ERROR/SpeechRecognizer(1745): no selected voice recognition service
05-06 20:19:38.527:错误/语音识别器(1745):没有选择语音识别服务
Does anybody know how to enable an emulator to support speech recognition services?
有人知道如何使模拟器支持语音识别服务吗?
Cheers,
干杯,
采纳答案by Michael Levy
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.
在您的模拟器图像中,您能否像将语音转换为文本一样安装 Google 语音搜索。该应用程序位于https://market.android.com/details?id=com.google.android.voicesearch&feature=search_result的市场中。我认为这是添加识别器意图的唯一方法。Recognizer 不是基本 Android 的一部分,它被认为是 Google 语音搜索附带的附加组件,并且包含在某些手机中。
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?
但是,人们仍然报告问题并建议使用真实设备而不是模拟器。请参阅 为什么无法在 Android 模拟器上使用语音记录器?
回答by Mina Fawzy
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 TTSplease have a look at this link
我有同样的问题,我可以在 genymotion 中执行此操作,您只需在 genymotion 完整包上安装 google 应用程序,因为您可以看到它支持Google TTS,请查看此链接
http://teckfront.com/download-android-4-3-jelly-bean-google-apps-gapps-full-mini-packages/
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