TranslationConfig

@Serializable
data class TranslationConfig(val echoTargetLanguage: Boolean? = null, val targetLanguageCode: String? = null)

Config for stream translation.

Constructors

Link copied to clipboard
constructor(echoTargetLanguage: Boolean? = null, targetLanguageCode: String? = null)

Properties

Link copied to clipboard

Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language.

Link copied to clipboard

Required. The target language for translation. Supported values are BCP-47 language codes (e.g. "en", "es", "fr").