I have my cell set to Japanese language and it recognize my voice as
Japanese.
I'm having overwriting the language setting though.
I run API Demo on my cell and when i try Voice Recognition, it only
recognize my speech as Japanese(which the cell phone is set to as
Default language)
So I added the line intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE,
Locale.ENGLISH.toString());
like the following
package com.example.android.apis.app;
private void startVoiceRecognitionActivity() {
Intent intent = new Intent
(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE,
Locale.ENGLISH.toString());
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speech
recognition demo");
startActivityForResult(intent,
VOICE_RECOGNITION_REQUEST_CODE);
}
But it still comes up with only Japanese.
Does anyone have the fix?
Please teach me how I can set the language properly if you know.
Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en