# SpeechSynthesizerRequest.QueueMode


```
@IntDef(value = [0, 1])
@Retention(value = AnnotationRetention.BINARY)
annotation SpeechSynthesizerRequest.QueueMode
```

<br />

*** ** * ** ***

The queue mode annotation.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.QueueMode#QUEUE_ADD() = 0` Queue mode where new utterances are added to the end of the playback queue. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.QueueMode#QUEUE_FLUSH() = 1` Queue mode where the playback queue is flushed and any ongoing utterance is stopped. |

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.QueueMode#QueueMode()()` |

## Constants

### QUEUE_ADD

```
const val QUEUE_ADD = 0: Int
```

Queue mode where new utterances are added to the end of the playback queue.

### QUEUE_FLUSH

```
const val QUEUE_FLUSH = 1: Int
```

Queue mode where the playback queue is flushed and any ongoing utterance is stopped.

## Public constructors

### QueueMode

```
QueueMode()
```