java - RecognizerIntent change default language -


i start recognizerintent code:

intent intent = new intent(recognizerintent.action_recognize_speech); intent.putextra(recognizerintent.extra_language_model,"us-us"); startactivityforresult(intent, result_speech_guest); 

but phone configurated in italian , when speech example "wait minute" return me "uait minut"(the italian pronunciation). why? best regards

i solved problem:

string language =  "us-us"; intent intent = new intent(recognizerintent.action_recognize_speech); intent.putextra(recognizerintent.extra_language_model,language); intent.putextra(recognizerintent.extra_language, language); intent.putextra(recognizerintent.extra_language_preference, language);  intent.putextra(recognizerintent.extra_only_return_language_preference, language); startactivityforresult(intent, result_speech_guest); 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -