Android 12 Developer Preview is here! Try it out, and give us your feedback!

TtsAnnotation

sealed class TtsAnnotation
kotlin.Any
   ↳ androidx.compose.ui.text.TtsAnnotation

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

Extension functions
From androidx.compose.ui.text.platform.extensions
TtsSpan