Android语音识别一直返回错误信息
syaringan356 发布于2016-02 浏览:1541 回复:1
1
收藏
Intent recognizerIntent = new Intent();
recognizerIntent.putExtra("sample", 8000);
recognizerIntent.putExtra("sound_start", R.raw.bdspeech_recognition_start);
recognizerIntent.putExtra("sound_end", R.raw.bdspeech_speech_end);
recognizerIntent.putExtra("sound_success", R.raw.bdspeech_recognition_success);
recognizerIntent.putExtra("sound_error", R.raw.bdspeech_recognition_error);
recognizerIntent.putExtra("sound_cancel", R.raw.bdspeech_recognition_cancel);
recognizerIntent.putExtra("language", "cmn-Hans-CN");
recognizerIntent.putExtra("nlu", "enable");
recognizerIntent.putExtra("vad", "input");
recognizerIntent.putExtra("prop", 20000);
mSpeechRecognizer.startListening(recognizerIntent);

这样开始后,listener的这个方法

public void onEvent(int eventType, Bundle params)

就返回

11    这个是eventType

Bundle[{reason=#7, No recognition result matched. non expected results: null}]   这个是params

收藏
点赞
1
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2ctfyhome回复于2016-03

您好,可以参考这篇帖子处理http://yuyin.baidu.com/bbs/q/887

0
TOP
切换版块