How to handle ERROR_RECOGNIZER_BUSY

前端 未结 4 1058
-上瘾入骨i
-上瘾入骨i 2020-12-17 08:35

In my voice recognition based app, I sometimes receive ERROR_RECOGNIZER_BUSY. Intuitively, this calls for... retries, right?

The problem is that thi

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 08:52

    Simply add the package to your recognizer intent and it should work. That is what I have done.

    Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
    ...
    intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, "com.package.name");
    

提交回复
热议问题