# SpeechTranslatorRequestKt


```
public final class SpeechTranslatorRequestKt
```

<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/speechtranslation/SpeechTranslatorRequest` | `https://developers.google.com/android/reference/com/google/mlkit/genai/speechtranslation/SpeechTranslatorRequestKt#speechTranslatorRequest(kotlinx.coroutines.flow.Flow,kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/speechtranslation/TranslationAudio> audioFlow, @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/speechtranslation/SpeechTranslatorRequest.Builder, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html> init )` Helper method to construct a `https://developers.google.com/android/reference/com/google/mlkit/genai/speechtranslation/SpeechTranslatorRequest` in a DSL-like manner. |

## Public methods

### speechTranslatorRequest

```
public static final @NonNull SpeechTranslatorRequest speechTranslatorRequest(
    @NonNull Flow<@NonNull TranslationAudio> audioFlow,
    @ExtensionFunctionType @NonNull Function1<@NonNull SpeechTranslatorRequest.Builder, Unit> init
)
```

Helper method to construct a `https://developers.google.com/android/reference/com/google/mlkit/genai/speechtranslation/SpeechTranslatorRequest` in a DSL-like manner.

Example usage:

```
val request = speechTranslatorRequest(audioFlow)
```