gotev / android-speech

Android speech recognition and text to speech made easy
http://gotev.github.io/android-speech/
Apache License 2.0
473 stars 156 forks source link

Language selection #69

Closed rehmanjameel closed 1 year ago

rehmanjameel commented 1 year ago

When i select a language other than English and close the app after reopen the app language has changed to English as default.

Is there any way to save the other selected language instead of default US-English?

yuripourre commented 1 year ago

You will need to store the same way you do for any other app. You can use shared preferences.

gotev commented 1 year ago

The speech engine uses device's default language, so it's going to always use that when you start it up. To use a different language, follow @yuripourre suggestion

rehmanjameel commented 1 year ago

You will need to store the same way you do for any other app. You can use shared preference Yes, I stored the chosen language in the shared preferences, and it is now functioning. Thanks for you suggestion, It's helpful.