I\'ve been working on speech Recognition API in android and found out that the speech results vary allot when the language settings are changed , is there a way to set it pr
This will work:
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en_US");
You have to use "en_US" instead of "en-US". The former is the right format of Java locale tag.
It is suggested that you use
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.US.toString());
to avoid remembering such detail.