Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 096190a9 authored by Sally's avatar Sally Committed by Sally Kovacs
Browse files

Add a Duration type and ARG_SECONDS to TtsSpan

This will enable more understandable speech output of durations
for screen readers, since by default numbers like "4:33" will
typically be announced as times, but depending on the context the
ideal speech may instead be "4 minutes 33 seconds".

This will also move developers away from content descriptions,
which reduce app resources used and avoids conflicts between
accessibility events (Example: simultaneous content description
and text changes in stopwatches/timers).

Flag: com.android.text.flags.tts_span_duration
Bug: 337103893
Test: atest TtsSpanTest, manual

Change-Id: I7e08eeaa67b0d1dbcf31dacf1465cb427dfa80c6
parent 5718f500
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment