You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voice_name (str, optional): Specific voice name. Default is an empty string. See https://docs.cloud.google.com/text-to-speech/docs/gemini-tts#voice_options for supported voice in Gemini TTS models.
96
95
voice_cloning_key (str, optional): Voice clone key. Created via https://cloud.google.com/text-to-speech/docs/chirp3-instant-custom-voice
97
-
model_name (str, optional): Model name for TTS (e.g., "gemini-2.5-flash-tts"). Enables Gemini TTS models with streaming support.
96
+
model_name (GeminiTTSModels | str, optional): Model name for TTS (e.g., "gemini-2.5-flash-tts", "chirp_3"). Default is "gemini-2.5-flash-tts".
98
97
prompt (str, optional): Style prompt for Gemini TTS models. Controls tone, style, and speaking characteristics. Only applied to first input chunk in streaming mode.
99
98
sample_rate (int, optional): Audio sample rate in Hz. Default is 24000.
100
99
location (str, optional): Location for the TTS client. Default is "global".
@@ -134,14 +133,20 @@ def __init__(
134
133
language_code=lang,
135
134
ssml_gender=ssml_gender,
136
135
)
137
-
ifis_given(model_name):
136
+
ifmodel_name!="chirp_3": # voice_params.model_name must not be set for Chirp 3
0 commit comments