# SpeechSynthesizerOptionsKt


```
public final class SpeechSynthesizerOptionsKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions` | `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptionsKt#speechSynthesizerOptions(java.util.Locale,kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Locale.html locale, @https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-extension-function-type/index.html @https://developer.android.com/reference/androidx/annotation/NonNull.html Function1<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions.Builder, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html> init )` DSL helper to configure and build `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions`. |

## Public methods

### speechSynthesizerOptions

```
public static final @NonNull SpeechSynthesizerOptions speechSynthesizerOptions(
    @NonNull Locale locale,
    @ExtensionFunctionType @NonNull Function1<@NonNull SpeechSynthesizerOptions.Builder, Unit> init
)
```

DSL helper to configure and build `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions`.