Closed GrEg00z closed 7 years ago
The option "locale" (for select speek language) is not implemented in the plugin.
I just added this in speech-recognition.android.js to make it works :
intent.putExtra(android.speech.RecognizerIntent.EXTRA_LANGUAGE, "en"); replaced by intent.putExtra(android.speech.RecognizerIntent.EXTRA_LANGUAGE, options.locale);
intent.putExtra(android.speech.RecognizerIntent.EXTRA_LANGUAGE, "en");
intent.putExtra(android.speech.RecognizerIntent.EXTRA_LANGUAGE, options.locale);
Could you please fix it in the repo ? Thanks
Hmm, missed that TODO in the code. Thx for letting me know. Added to 1.1.3.
The option "locale" (for select speek language) is not implemented in the plugin.
I just added this in speech-recognition.android.js to make it works :
intent.putExtra(android.speech.RecognizerIntent.EXTRA_LANGUAGE, "en");
replaced byintent.putExtra(android.speech.RecognizerIntent.EXTRA_LANGUAGE, options.locale);
Could you please fix it in the repo ? Thanks