Question

Does anyone know why TalkBack reads the text "Balance: $0.00" as simply "Balance"? It seems to ignore values equivalent to zero. I would expect it to be read as "Balance: zero dollars."

view.announceForAccessibility("Total: $0.00"); // Reads "Total"
view.announceForAccessibility("Total: $0"); // Reads "Total"
view.announceForAccessibility("Total: 0"); // Reads "Total: Zero"

I filed a bug on the Android project, but was wondering if anyone here had some insight.

Was it helpful?

Solution

This is a bug in the text-to-speech engine, and should be fixed in later versions of the engine.

To work around it, you can either use a different TTS engine (ex. SVOX Classic) or specify the announcement as "Total: zero dollars" when you know the value is zero.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top