Search code examples
androidinternationalizationaccessibilitytext-to-speech

How to declare the fallback language on Android for TalkBack?


I have an Android app that currently only has a fallback language, so all strings are in res/values/strings.xml and are in English. This works fine with TalkBack while the OS is also set to English. However, as soon as I change the OS language to anything other than English, TalkBack starts to speak those English words using the pronunciation of the OS language, which is weird and hard to understand.

How can I declare to the Android OS what the language of my fallback resources is so that TalkBack can choose the correct pronunciation to use?


Solution

  • Unfortunately, as far as I know Talkback doesn't support auto language switching. Google TTS seems to do some auto switching based on non-latin characters these days, but for latin languages it just doesn't do anything except keep the phone language. So, I'm afraid there's nothing you can do to facilitate this.