Use
myTts.setLanguage(new Locale("es"))
This works for spain. Apparently, Java decided not to spell out all
locales a while back.
Wanted to post in case others are running into same problem.
On Oct 13, 9:15 am, dsurround <[email protected]> wrote:
> I am interfacing with the Text Synthesis engine of 1.6. I am trying
> to set the language to Spanish. I can set it to English, German,
> French and Italian, but Spanish does not come up as an option.
>
> myTts.setLanguage(Locale.SPANISH); // this does not work
> myTts.setLanguage(Locale.GERMAN); // this works along with ENGLISH,
> ITALIAN or FRENCH
>
> Seems like it should be there. Is that a known bug? I have looked
> through
> the forums, can't find anything. I can set it to SPANISH
> through the settings interface on the phone, but need to set it
> programatically.
> Please advise.
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---