TimedText | AIUI | Rokid

timed-text highlights an active range inside complete text, making it suitable for captions synchronized to audio progress.

TimedText

timed-text highlights an active range inside complete text, making it suitable for captions synchronized to audio progress.

Highlight the Current Caption Range

<timed-text text="Welcome to AIUI" active-start="8" active-length="2"></timed-text>

Properties

PropertyTypeDefaultDescription
textString""Complete text.
active-startNumber0Active-range start as a UTF-16 offset.
active-lengthNumber0Active-range length in UTF-16 code units.

Regular text uses --timed-text-color, defaulting to the current text color at 45% opacity. The active range uses --timed-text-active-color, defaulting to the inherited text color.