SpeechTranslatorOptions

class SpeechTranslatorOptions


Options for SpeechTranslator.

Summary

Public companion functions

SpeechTranslatorOptions.Builder
builder(sourceLocale: Locale, targetLocale: Locale)

Creates a new Builder translating from sourceLocale to targetLocale.

Public companion functions

builder

fun builder(sourceLocale: Locale, targetLocale: Locale): SpeechTranslatorOptions.Builder

Creates a new Builder translating from sourceLocale to targetLocale.

Translation is bidirectional: audio tagged with either locale may be sent in the same session, and is translated into the other.

Public properties

executor

val executor: Executor?

sourceLocale

val sourceLocale: Locale

targetLocale

val targetLocale: Locale