我正在尝试构建一个android应用程序,即使在压力测试中它在三星galaxy S3上也能正常工作,比如反复按下麦克风图像按钮
但是我的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();
}
我将不胜感激任何帮助或线索
此致