android - EXTRA_LANGUAGE_PREFERENCE for SpeechRecognizer? -
forcing particular language recognizerintent straightforward described in this answer.
intent.putextra(recognizerintent.extra_language_preference, "en-us"); but works if intent instantiated of type recognizerintent.
in application use lower-level speechrecognizer, i.e.:
intent intent = new intent(speechrecognizer.results_recognition); and trying force language decribed above doesn't work.
what proper way of programmatically setting language preference speechrecognizer?
is possible @ all?
the language preference should work.
please post more of code.
you should still create intent this:
intent intent = new intent(recognizerintent.action_recognize_speech); not this:
intent intent = new intent(speechrecognizer.results_recognition); then have call speechrecognizer class directly.
are doing that?
for reference, see code's recognizespeechdirectly() method.
Comments
Post a Comment