Reputation: 173
I have an application with a translation quiz and I want to make it accessible to blind people. The problem is that when I focus on a Spanish sentence (for example), Talkback reads it in English. Is there any way to trigger the Spanish TTS dynamically in Java?
Thank you
Upvotes: 3
Views: 2272
Reputation: 15334
Yes there is now!
You have to wrap the string in a LocaleSpan
(min sdk 17) and the latest version of TalkBack can switch language on the fly.
Upvotes: 5