The App I am working on has a name which is mispronounced by the talkback. I am able to fix this within the app by changing the spelling. But if I change the spelling in the android:label in the manifest, it is misspelled on the app icon on the phone. Does anyone have a way around this?
-
4 months and no answers :( I'm having the same problem– Jason HuCommented Nov 14, 2013 at 20:29
-
As of Android 4.4.2 and TalkBack 3.5.1, there is no way to provide an alternative pronunciation. Consider filing a feature request at the Android or Eyes-Free issue trackers on Google Code.– alanvCommented Jan 7, 2014 at 5:29
-
Has anyone else filed an issue on this yet? I couldn't find one from a quick search, but I wanted to make sure I didn't miss it.– Sean BarbeauCommented Oct 7, 2014 at 18:38
-
nope, unfortunately not– hrishitiwariCommented Oct 8, 2014 at 19:01
-
by the way, I did write this issue on google code, and they told me to ask on StackOverflow?!– hrishitiwariCommented Oct 8, 2014 at 20:50
3 Answers
There is no way to do this. The fix would be for the LaunchScreen to have the ability to read an alternative label, and place it in the content description for the textView that represents your application.
TalkBack reads back things like this.
- If a contentDescription is available this is read off.
- If the view has "text" this is read off.
- All other cases the view is not accessibility focused.
So, what is happening is TalkBack is grabbing onto the "text" of your view as provided by the name of the application. The Launch Screen does not provide a mechanism for overriding the contentDescription, and therefore will only ever read your text. This isn't a problem with your app, it is a problem with the Home Screen app. You may be able to fix this for users with different Home Screen apps, but there is absolutely no universal solution, and certainly no solution for the standard LaunchScreen application provided on stock Motorola, Samsung, and Nexus devices (most likely others as well, but I don't own any of them).
In the case that talkback is not pronouncing an acronym correctly, attempting to read it as a word rather than individual letters, you can use zero-width non-breaking space characters \ufeff
to separate the letters invisibly.
Suppose you have the word CAT
but you want it pronounced C.A.T.
:
<string name="app_name">C\ufeffA\ufeffT</string>
It will still appear as CAT
and won't be broken for line-wrapping.
However, your users will not be able to search for the app by typing CAT anymore.
You could change the text read by TalkBack programmatically with:
getWindow().getDecorView().setContentDescription("Name as pronounced")