<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/audio/text_to_speech.py#L326-L351) |

Synthesized audio chunk or full clip returned by `TextToSpeech`.

```python
mp.tasks.audio.TtsAudioResult(
    samples: np.ndarray,
    sample_rate_hz: int,
    chunk_index: int = 0,
    is_final: bool = True,
    word_timestamps: tuple[`mp.tasks.audio.WordTimestamp`, ...] = ()
)
```

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `samples` | 1D NumPy array of mono float32 PCM samples in `[-1.0, 1.0]`. |
| `sample_rate_hz` | Output PCM sample rate in Hz. |
| `chunk_index` | Zero-based clause/chunk index in a streaming session. |
| `is_final` | Whether this chunk is the final output in the stream. |
| `word_timestamps` | Word-level timing alignments for read-along highlighting. |
| `duration_seconds` | Returns the duration of `samples` in seconds. |

<br />

## Methods

### `__eq__`

```python
__eq__(
    other
)
```

Return self==value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| chunk_index | `0` |
| is_final | `True` |
| word_timestamps | `()` |

<br />