![xojo spa xojo spa](https://www.aprendexojo.com/wp-content/uploads/2021/09/ActiveWords.gif)
The first section of the TTS doc shows how to go about checking for the languge specific resources, and downloading them if they aren't present. What device/sdk version are you using? If neither work, it might be because your device does not support spanish-mexico. The Locale documentation says 2 letter, thus it would be sp-MX, but the TTS doc shows an example with 3 letter codes, thus spa-MEX would be the correct. It is a bit confusing if it wants the 2 letter or 3 letter country codes. I've not used TTS on Android yet so I don't know whether this is relevant, but the Locale constructor expects a 2-letter country code and the ISO country code for Mexico is MX.
![xojo spa xojo spa](https://igetintopc.org/wp-content/uploads/2019/05/luminary-will-allow-podcasters-to-include-links-in-their-show-notes.jpg)
Tts.speak(text, TextToSpeech.QUEUE_ADD, null) Locale locSpanish = new Locale("spa", "MEX") I have used the following code and it is working fine in Spanish. Can anyone see what I am doing incorrectly to set my language? But from my application I get "Heyyo" instead of "Hola". Either way when I hit 'listen to preview' I get "Hola" which is expected. If I set the language to either Spanish or Spanish-Latin America. I can exit my app and open up the TTS Service Extended. TtsEngine::setLanguage found matching language(spa) but not matching country(MEX). I have also tried ("es","US"), ("es","LA"), ("spa","US"), ("spa","MEX") with every combination that I can think of it is showing me this in the log: I have tried several combination's of language code / country code but I have not been able to get anything by Spanish from Spain. I am trying to set it to speak in Spanish from Mexico, rather than from Spain. Android TTS Languages - android I am playing with the Android TTS engine.