All we know that many languages includes several words from other languages. While using android speech recognition (Androdi4.1) to develop an android application, we need that app process the speech input with two languages (EN and TR) at the same time (or asynch) and bring us both of the results.
English word “Burger” in Turkish pronunciation is “Börgır” .
If we use android speech recognition in english, application understands Burger as Burger
(on text) .
If we use android speech recognition in turkish, application understands Burger as Börgır(on text)
This is because Turkish language is written as spoken.
For example:
speech recognition result with Turkish option: Börgır yemek istiyorum
speech recognition result with English option: Burger xxxxx yyyyyyyyy
Expected result is(with combined result) : Burger yemek istiyorum
So do you know how to process two languages at the same time , with android speech recognition to collect both results, after that we will combine them in order to get best results.
Below code is used for implementing android speech recognition within application:
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
// Specify the calling package to identify your application
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "tr"); --- or eng-us
I suggest that you pick one language for the speech recognizer like english. Then when you speak your other language, see what the speech recognizer comes up with. You may be able to interpret the english recognition of that.
For example, if you want to speak spanish to the english recognizer and the user says “si” in spanish, you might notice the recognizer recognizes that as “see”