Usage guide

Setup, environment variables, and Python/JavaScript/Go usage examples.

CartesiaTTS

Initialize the Cartesia TTS plugin. Slot: tts. Route: plugins — direct to the vendor, with CARTESIA_API_KEY or an explicit api_key.

Fields

str
default:"sonic-2"
Union[str, List[float]]
default:"f8f5f1b2-f02d-4d8e-a40d-fd850a487b3d"
str
default:"en"
str
default:"https://api.cartesia.ai"
GenerationConfig | None
default:"None"
Accepts GenerationConfig, or a plain mapping with the same fields.
str | None
default:"None"
int | None
default:"None"
bool
default:"False"
float
default:"300.0"

GenerationConfig

Voice generation parameters. Only sent to Cartesia for sonic-3+ / sonic-latest Mirrored, not imported: the vendor’s class is rebuilt from this on the runtime side. A mapping is still accepted wherever this is.

Fields

float | None
default:"UNSET"
str | None
default:"UNSET"
float | None
default:"UNSET"