Interface TranslationConfig

Config for stream translation.

interface TranslationConfig {
    echoTargetLanguage?: boolean;
    targetLanguageCode?: string;
}

Properties

echoTargetLanguage?: boolean

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.

targetLanguageCode?: string

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