Table of Contents

Class TranslationConfig

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Config for stream translation. Sent on the wire as setup.generationConfig.translationConfig.

public class TranslationConfig
Inheritance
TranslationConfig
Inherited Members
Extension Methods

Properties

EchoTargetLanguage

If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, no audio is produced for the target language.

[JsonPropertyName("echoTargetLanguage")]
public bool? EchoTargetLanguage { get; set; }

Property Value

bool?

TargetLanguageCode

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

[JsonPropertyName("targetLanguageCode")]
public string? TargetLanguageCode { get; set; }

Property Value

string