@@ -19507,6 +19507,40 @@ class RealtimeInputConfigDict(TypedDict, total=False):
1950719507RealtimeInputConfigOrDict = Union[RealtimeInputConfig, RealtimeInputConfigDict]
1950819508
1950919509
19510+ class StreamTranslationConfig(_common.BaseModel):
19511+ """Config for stream translation."""
19512+
19513+ echo_target_language: Optional[bool] = Field(
19514+ default=None,
19515+ description="""If true, the model will generate audio when the target language is
19516+ spoken, essentially it will parrot the input. If false, we will not produce
19517+ audio for the target language.""",
19518+ )
19519+ target_language_code: Optional[str] = Field(
19520+ default=None,
19521+ description="""The target language for translation. Supported values are BCP-47
19522+ language codes (e.g. "en", "es", "fr").""",
19523+ )
19524+
19525+
19526+ class StreamTranslationConfigDict(TypedDict, total=False):
19527+ """Config for stream translation."""
19528+
19529+ echo_target_language: Optional[bool]
19530+ """If true, the model will generate audio when the target language is
19531+ spoken, essentially it will parrot the input. If false, we will not produce
19532+ audio for the target language."""
19533+
19534+ target_language_code: Optional[str]
19535+ """The target language for translation. Supported values are BCP-47
19536+ language codes (e.g. "en", "es", "fr")."""
19537+
19538+
19539+ StreamTranslationConfigOrDict = Union[
19540+ StreamTranslationConfig, StreamTranslationConfigDict
19541+ ]
19542+
19543+
1951019544class LiveConnectConfig(_common.BaseModel):
1951119545 """Session config for the API connection."""
1951219546
@@ -19645,6 +19679,9 @@ class LiveConnectConfig(_common.BaseModel):
1964519679 response.
1964619680 """,
1964719681 )
19682+ stream_translation_config: Optional[StreamTranslationConfig] = Field(
19683+ default=None, description="""Config for stream translation."""
19684+ )
1964819685
1964919686
1965019687class LiveConnectConfigDict(TypedDict, total=False):
@@ -19763,6 +19800,9 @@ class LiveConnectConfigDict(TypedDict, total=False):
1976319800 response.
1976419801 """
1976519802
19803+ stream_translation_config: Optional[StreamTranslationConfigDict]
19804+ """Config for stream translation."""
19805+
1976619806
1976719807LiveConnectConfigOrDict = Union[LiveConnectConfig, LiveConnectConfigDict]
1976819808
0 commit comments