# TtsAnnotation

Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/TtsAnnotation.kt+class:androidx.compose.ui.text.TtsAnnotation) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  sealed class TtsAnnotation : AnnotatedString.Annotation
  ```
Known direct subclasses [VerbatimTtsAnnotation](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/VerbatimTtsAnnotation)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/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 |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TtsAnnotation#TtsAnnotation()()` | Cmn |

| ### Extension functions |
|---|---|---|
| `https://developer.android.com/reference/android/text/style/TtsSpan.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TtsAnnotation.https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TtsAnnotation#(androidx.compose.ui.text.TtsAnnotation).toSpan()()` | android |

## Protected constructors

### TtsAnnotation

Cmn

```
protected TtsAnnotation()
```

## Extension functions

### TtsAnnotation.toSpan

android Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/platform/extensions/TtsAnnotationExtensions.android.kt+function:toSpan)

```
fun TtsAnnotation.toSpan(): TtsSpan
```