6
我還沒有在我的android手機上安裝谷歌語音搜索。我無法安裝它,因爲它只適用於美國。但vilingo應用程序在我的android手機上很好。在我自己的語音識別應用程序中,它說「識別器不存在」。如何在android-「Recognizer not present」中實現語音識別器?
這是我從android開發人員網站使用的代碼。
List<ResolveInfo> activities = pm.queryIntentActivities(
intent, pm.MATCH_DEFAULT_ONLY);
if (activities.size() == 0)
{
speakButton.setEnabled(false);
speakButton.setText("Recognizer not present");
}
爲什麼它從上面的代碼返回空列表?
非常感謝。
我下載語音搜索並安裝它。 :)不是它工作 – rwe
檢查出http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/VoiceRecognition.html和http://developer.android.com /reference/android/speech/RecognizerIntent.html它也取決於你使用的Android版本和設備型號。 –