# SpeechSynthesizerRequest.QueueMode


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

<br />

*** ** * ** ***

The queue mode annotation.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.QueueMode#QUEUE_ADD() = 0` Queue mode where new utterances are added to the end of the playback queue. |
| `static final int` | `https://developers.google.com/android/reference/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/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.QueueMode#QueueMode()()` |

## Constants

### QUEUE_ADD

```
public static final int QUEUE_ADD = 0
```

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

### QUEUE_FLUSH

```
public static final int QUEUE_FLUSH = 1
```

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

## Public constructors

### QueueMode

```
public QueueMode()
```