feat: add Cartesia Sonic 3.5 TTS model

This commit is contained in:
manasseh-zw 2026-06-08 15:24:40 +02:00
parent 49e68b49d5
commit 263f8caa0e
2 changed files with 45 additions and 2 deletions

View file

@ -911,7 +911,7 @@ class DograhTTSService(BaseTTSConfiguration):
speed: float = Field(default=1.0, ge=0.5, le=2.0, description="Speed of the voice.")
CARTESIA_TTS_MODELS = ["sonic-3"]
CARTESIA_TTS_MODELS = ["sonic-3.5", "sonic-3"]
@register_tts
@ -919,7 +919,7 @@ class CartesiaTTSConfiguration(BaseTTSConfiguration):
model_config = CARTESIA_PROVIDER_MODEL_CONFIG
provider: Literal[ServiceProviders.CARTESIA] = ServiceProviders.CARTESIA
model: str = Field(
default="sonic-3",
default="sonic-3.5",
description="Cartesia TTS model.",
json_schema_extra={"examples": CARTESIA_TTS_MODELS},
)