I installed the speech recognition service, as shown in this Android Speech Recognition message , as a service on Android 4.1 and 4.2 , and when I use offline recognition (installing the phone in flat mode) it only shows me 1 result onResults (), while online I always get more than 5 results.
I use this intention:
mSpeechRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,
this.getPackageName());
mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "fr-FR");
mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);
I switched to English, and he did the same. I also tried searching on the Internet instead of a free form.
I would like to know if there is any magic code to make it work, or is it simply impossible to combine multiple results with autonomous recognition.
Thank you in advance