Error: Unsupported locale
Closed this issue · 5 comments
Describe the bug
TextToSpeech.getSupportedLanguages() returns undefined in web & android platforms not sure about ios.
Workaround
Pass undefined to locale property
@KrishnaPhalgun5168 , do you know what to do if I want to use another languges? This workaround forces english selection...
@trizotti I have no clue how to use it for other languages. Did you try changing the default speech-language of your device?
@KrishnaPhalgun5168 , it seems that any locale passed through the speak method will be reconized as unsupported (I think it should be fixed soon, there's an issue open for this). A simple and temporary workaround for those who are facing the same situation: set the default language as the choosen language on the file TextToSpeech.java