Setup
Set your Cartesia API key in the worker environment. Generate a key from the Cartesia dashboard:Usage
Import the plugin and pass it to the pipeline’stts slot.
Parameters
Constructor parameters forCartesiaTTS. The Python and Node JS SDKs share these field names.
generation_config can be passed as a dictionary with Cartesia’s supported voice-shaping fields:
speed:0.6to1.5(1.0= default speed)volume:0.5to2.0(1.0= default volume)emotion: one of"neutral","calm","angry","content", or"sad"
Import paths
Spoken replies support interruptions. When the caller talks over the agent, the runtime
stops the audio and listens again.
Inference models
These Cartesia models also run through the Inference Gateway on your Zero Runtime auth token, with no Cartesia API key. Pass the model id to the same class imported fromzeroruntime.inference (Python) or @zeroruntime/js-sdk/inference (Node JS).