{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TtsAnnotation

public sealed class TtsAnnotation

Known direct subclasses
VerbatimTtsAnnotation

The text associated with this annotation is a series of characters that have to be read verbatim.


An annotation that contains the metadata intended for text-to-speech engine. If the text is being processed by a text-to-speech engine, the engine may use the data in this annotation in addition to or instead of its associated text.

Summary

Protected constructors

Extension functions

final @NonNull TtsSpan

Protected constructors

TtsAnnotation

protected TtsAnnotation()

Extension functions

TtsAnnotationExtensionsKt.toSpan

public final @NonNull TtsSpan TtsAnnotationExtensionsKt.toSpan(@NonNull TtsAnnotation receiver)