alphacep / vosk-android-service

Offline voice typing for Android
Apache License 2.0
55 stars 10 forks source link

Use String, not Locale for value of EXTRA_LANGUAGE #25

Closed sogaiu closed 1 year ago

sogaiu commented 1 year ago

IIUC, RecognizerIntent.EXTRA_LANGUAGE should have an associated String value, not Locale. From the docs:

Optional IETF language tag (as defined by BCP 47), for example "en-US".

Here is an SO answer that is related.

I was seeing errors in logcat output regarding this -- one side effect of it was that a fallback value was getting used instead when instantiating something.

nshmyrev commented 1 year ago

Thank you!