Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SpeechRecognizer when do I get ERROR_CLIENT when starting the voice recognizer?

I am not sure about some documentation related stuff.

To sum up what I did and what I want to to: I managed to introduce voice recognition feature into an Android application that is running on Android 4.2 on a tablet, and it works ok. Now I want to port my application on Google Glass but unfortunately I get the following error when I try to start the speech recognizer: error 5 -> ERROR_CLIENT(Other client side errors). The message guides me to find other errors that not related to SpeechRecognizer object, but I don't get any in my logs, not even warnings. So my question would be: When exactly do I get ERROR_CLIENT? and what should look the errors that block the recognizer to start?

Thank you! :)

like image 685
Ispas Claudiu Avatar asked Dec 15 '22 21:12

Ispas Claudiu


1 Answers

I found this link that is the source code for producing the errors.

SpeechRecognizer source

There are 7 places where a search found "ERROR_CLIENT"

Here's the log statements right before the ERROR_CLIENT is sent to onError

  • Log.e(TAG, "no selected voice recognition service");
  • Log.e(TAG, "bind to recognition service failed");
  • Log.e(TAG, "startListening() failed", e);
  • Log.e(TAG, "stopListening() failed", e);
  • Log.e(TAG, "cancel() failed", e);
  • Log.e(TAG, "not connected to the recognition service");

Of course you can find more info at the above link, but this should give you the general reasons why you'd get ERROR_CLIENT

like image 109
Steven H Avatar answered Jan 25 '23 15:01

Steven H