Interface StreamTranslationConfig

Config for stream translation.

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

Properties

echoTargetLanguage?: boolean

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

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