---
title: "TtsAnnotation"
description: "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."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
sealed class TtsAnnotation : AnnotatedString.Annotation
```


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.



