我没有在我的安卓手机上安装谷歌语音搜索。我无法安装它,因为它仅适用于美国。但 vilingo 应用程序在我的安卓手机上运行良好。在我自己的语音识别应用程序中,它显示“识别器不存在”。
这是我在 android 开发者网站上使用的代码。
List<ResolveInfo> activities = pm.queryIntentActivities(
intent, pm.MATCH_DEFAULT_ONLY);
if (activities.size() == 0)
{
speakButton.setEnabled(false);
speakButton.setText("Recognizer not present");
}
为什么它从上面的代码返回空列表?
非常感谢。
最佳答案
I think Update Your Devise Os ,
later try this link
http://tutorials-android.blogspot.com/2011/10/android-basics-19-string-array-and.html
关于android - 如何在 android- "Recognizer not present"中实现语音识别器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8381424/