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
Post a Comment