EddyVerbruggen / nativescript-speech-recognition

:speech_balloon: Speech to text, using the awesome engines readily available on the device.
Other
90 stars 22 forks source link

add support for language #5

Closed GrEg00z closed 7 years ago

GrEg00z commented 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);

Could you please fix it in the repo ? Thanks

EddyVerbruggen commented 7 years ago

Hmm, missed that TODO in the code. Thx for letting me know. Added to 1.1.3.