RecognitionListener callback to onError, called multiple times with the same error code

Using the interface RecognitionListener, I implement speech recognition. This interface allowed to implement a callback, for example:

public void onError(int error) {

}

It works great, except for one serious problem. The callback for onError is called multiple times with the same error code. As an example ERROR_CLIENTor ERROR_NO_MATCH. I see that the same method gets a callback with the same error code at least twice.

What is missing? Or is this a bug in the Google Speech Recognition API?

+4
source share
2 answers

, , - destroy SpeechRecognizer. , , , destroy.

0

, ?

0

All Articles