I am working on an android application that uses the TextToSpeech functions provided by google and follows this example:
Google TTS Example
I want to know this line:
int result = mTts.setLanguage(Locale.US); if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) { // Lanuage data is missing or the language is not supported. }
What if language data is not available from the user device? The application will not continue if there is no data? Is there a way to let the user get the language on their device? I have a test device that doesn't seem to contain any languages ββat all.
source share