Closed josco007 closed 3 years ago
By default Speech uses your default locale set on Android. Do you need setting a different one instead? If so, isn't this sufficient?
Speech.init(this, packageName)
Speech.getInstance().setLocale(Locale("es", "MX"))
Hi, thanks for your answer, I have tried that but seems that is necessary that the speech.init method be completed because if I call Speech.getInstance().setLocale(Locale("es", "MX")) immediately after init, the method setLocale does not take effect
@josco007 yes, that's a race condition, which is not easy to overcome and would require cumbersome code to handle. To avoid race conditions, one possible way is to extend the init
method:
Speech.init(this, packageName, locale)
and provide the desired initial locale
Hi, I have a doubt about if the loggerDelegate will works in production mode, i am using this delegate to know if the engine has been started to set the locale in there , example: