I want to create an application that can support different languages.
No problem with "standard" languages:
tts.setLanguage(Locale.ENGLISH);
And also some others:
Locale l = new Locale("ru","RU"); tts.setLanguage(l);
But many others do not work, for example:
Locale l = new Locale("hu","HU"); tts.setLanguage(l);
I also tried "hu", "hu-hu", "hu-rHU", "hu" ... but nothing ...
In addition, it does not work with Turkish, Greek, Dutch, Czech ...
java android locale
ferrari13
source share