# SpeechSynthesizerOptions


```
class SpeechSynthesizerOptions
```

<br />

*** ** * ** ***

Configuration options for `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizer`.

## Summary

| ### Nested types |
|---|
| `class https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions.Builder` Builder for `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions`. |

| ### Public companion functions |
|---|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions.Builder` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions#builder(java.util.Locale)(locale: https://developer.android.com/reference/java/util/Locale.html)` Creates a new `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions.Builder` with the specified `https://developer.android.com/reference/java/util/Locale.html`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://developer.android.com/reference/android/net/Uri.html>` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions#earcons()` |
| `https://developer.android.com/reference/java/util/concurrent/Executor.html?` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions#executor()` |
| `https://developer.android.com/reference/java/util/Locale.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions#locale()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://developer.android.com/reference/android/net/Uri.html>` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions#speeches()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions#voiceFallbackEnabled()` |

## Public companion functions

### builder

```
fun builder(locale: Locale): SpeechSynthesizerOptions.Builder
```

Creates a new `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions.Builder` with the specified `https://developer.android.com/reference/java/util/Locale.html`.

## Public properties

### earcons

```
val earcons: Map<String, Uri>
```

### executor

```
val executor: Executor?
```

### locale

```
val locale: Locale
```

### speeches

```
val speeches: Map<String, Uri>
```

### voiceFallbackEnabled

```
val voiceFallbackEnabled: Boolean
```