1818from .fish_audio_tts_params import FishAudioTtsParams
1919from .generic_http_tts_params import GenericHttpTtsParams
2020from .google_tts_params import GoogleTtsParams
21+ from .gradium_tts_params import GradiumTtsParams
2122from .hume_ai_tts_params import HumeAiTtsParams
2223from .microsoft_tts_params import MicrosoftTtsParams
2324from .minimax_tts_params import MinimaxTtsParams
25+ from .mistral_tts_params import MistralTtsParams
2426from .murf_tts_params import MurfTtsParams
2527from .open_ai_tts_params import OpenAiTtsParams
2628from .rime_tts_credential_mode import RimeTtsCredentialMode
@@ -334,6 +336,36 @@ class Config:
334336 extra = pydantic .Extra .allow
335337
336338
339+ class Tts_Gradium (UncheckedBaseModel ):
340+ vendor : typing .Literal ["gradium" ] = "gradium"
341+ params : GradiumTtsParams
342+ skip_patterns : typing .Optional [typing .List [int ]] = None
343+
344+ if IS_PYDANTIC_V2 :
345+ model_config : typing .ClassVar [pydantic .ConfigDict ] = pydantic .ConfigDict (extra = "allow" , frozen = True ) # type: ignore # Pydantic v2
346+ else :
347+
348+ class Config :
349+ frozen = True
350+ smart_union = True
351+ extra = pydantic .Extra .allow
352+
353+
354+ class Tts_Mistral (UncheckedBaseModel ):
355+ vendor : typing .Literal ["mistral" ] = "mistral"
356+ params : MistralTtsParams
357+ skip_patterns : typing .Optional [typing .List [int ]] = None
358+
359+ if IS_PYDANTIC_V2 :
360+ model_config : typing .ClassVar [pydantic .ConfigDict ] = pydantic .ConfigDict (extra = "allow" , frozen = True ) # type: ignore # Pydantic v2
361+ else :
362+
363+ class Config :
364+ frozen = True
365+ smart_union = True
366+ extra = pydantic .Extra .allow
367+
368+
337369Tts = typing_extensions .Annotated [
338370 typing .Union [
339371 Tts_Tencent ,
@@ -356,6 +388,8 @@ class Config:
356388 Tts_Cosyvoice ,
357389 Tts_BytedanceDuplex ,
358390 Tts_Stepfun ,
391+ Tts_Gradium ,
392+ Tts_Mistral ,
359393 ],
360394 UnionMetadata (discriminant = "vendor" ),
361395]
0 commit comments