Skip to main content
Cartesia is a text-to-speech plugin. It turns the LLM’s reply into audio the caller hears.

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’s tts slot.

Parameters

Constructor parameters for CartesiaTTS. 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.6 to 1.5 (1.0 = default speed)
  • volume: 0.5 to 2.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.