简体   繁体   English

动态更改对讲语言?

[英]Change Talkback language dynamically?

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. 问题是,例如当我关注西班牙语句子时,Talkback会用英语阅读它。 Is there any way to trigger the Spanish TTS dynamically in Java? 有什么方法可以在Java中动态触发西班牙语TTS?

Thank you 谢谢

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. 您必须将字符串包装在LocaleSpan (最低sdk 17)中,最新版本的TalkBack可以即时切换语言。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM