beich / hackerskeyboard

Automatically exported from code.google.com/p/hackerskeyboard
0 stars 0 forks source link

change/respect language for voice input #266

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Language for voice input should be set according to whats selected by swiping 
the space bar.

As far as I can see this can be done by something like

  intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");

in the right place.

BTW this is not only the omission of hackerskeyboard, its one of the biggest 
problems I have with the google input and search implementations.

Original issue reported on code.google.com by rdzid...@gmail.com on 22 Jul 2012 at 2:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
after some hacking I could not find a solution to make it work as expected. A 
simple

   intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "de-DE");

did not make any difference. Changing language in FieldContext neither.

When changing language by swiping space bar voice recognition still works with 
the old language no matter what I change.

But after changing input method to android keyboard and back to hackerskeyboard 
it does suddenly use the correct language for voice recognition, not ideal but 
easier than find the deeply hidden Android system menu.

Is there some static variable that I have missed to change in hackerskeyboard 
code or is it a bug in Android 2.3.3?

Btw could not find any documentation regarding EXTRA_RECOGNITION_CONTEXT?

Original comment by rdzid...@gmail.com on 6 Aug 2012 at 11:06