0
我想建立一個Android應用程序,它甚至在壓力測試工作的罰款三星galaxy S3,就像按下麥克風圖像按鈕反覆錯誤代碼8的Android語音識別的Nexus 7平板電腦
,但我有我的nexus7平板電腦上的Error8在同樣的壓力測試麥克風上反覆按壓,之後該應用程序需要重新啓動才能正常工作 對於正常使用情況,它在nexus7中也工作正常。
下面的代碼是識別類;
public class MyRecognitionListener implements RecognitionListener
這就是我所說的語音識別;
Intent recognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
recognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
recognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getPackageName());
recognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, langParam);
//recognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);
recognizerIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS,10);
try {
recognizer.startListening(recognizerIntent);
} catch (Exception e) {
recognizer.stopListening();
e.printStackTrace();
}
我希望得到任何幫助或線索
問候
[錯誤錯誤\ _RECOGNIZER \ _BUSY離線語音識別(可能的重複https://stackoverflow.com/questions/32866239 /錯誤錯誤識別忙與 - 離線語音識別) –