jjzjj

AudioHardwareQSD

全部标签

android - 直接使用 SpeechRecognizer API - onResults() 一直返回 null

我一直在努力关注theexampleinthispost.因为我不是在服务中而是在标准Activity中尝试实现它,所以我没有遇到theaforementionedpost中描述的问题.但是,当getStringArrayList(RecognizerIntent.EXTRA_RESULTS)返回null时,我一直收到“没有语音结果”-正如在那篇文章中所实现的那样。很明显,除了之外,我还遗漏了一些需要做的recognizer.setRecognitionListener(listener);recognizer.startListening(intent);我错过了什么?有没有可能除了