speech_recognition
speech_recognition copied to clipboard
Fix non-default locale recognition on Android
According to documenation EXTRA_LANGUAGE value should be
IETF language tag (as defined by BCP 47), for example "en-US"
So I just replaced Locale with the correct format and that fixed #2 for me. I tested those changes with Android 6 and 8.
When it will be merged?
I can confirm, it works now on Android with the fix by olexale !!!! Big thanks :)
Confirmed as well, without this fix non-US locales aren't recognized on Android (even the example app does not work as expected). With it they work like a charm.
Hi, can you please merge this PR and release a new version?
yes i can confirm too that this fix did the trick .
tested with arabic, gj
Hi, any chance to merge it?
Hi @tsinis ,
You may fork the repository, merge those changes in your fork, and use your custom plugin version, or use already patched version by changing your pubspec.yaml file like that:
speech_recognition:
git:
url: git://github.com/olexale/speech_recognition.git
Hi @tsinis , You may fork the repository, merge those changes in your fork, and use your custom plugin version, or use already patched version by changing your pubspec.yaml file like that: speech_recognition: git: url: git://github.com/olexale/speech_recognition.git
Hi @olexale Yeah its working, but onRecognitionComplete is never return, and _isListening is always true, in example app... on real Android device (android pie).
P.S. спасибо