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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -