Skip to main content

Cartesia TTS

CartesiaTTS is a Patter TTSProvider backed by Cartesia’s /tts/bytes HTTP endpoint. It streams raw PCM_S16LE chunks that drop directly into Patter’s pipeline with no transcoding. Pure aiohttp transport, no vendor SDK required. The default model is sonic-3 (current GA snapshot, ~90 ms TTFB target).
This page covers Cartesia TTS. For Cartesia’s ink-whisper STT see the Cartesia STT page.

Install

Usage

Use the namespaced import (getpatter.tts.cartesia) or the flat alias (getpatter.CartesiaTTS). Both auto-resolve CARTESIA_API_KEY from the environment when api_key= is omitted.
In an agent:

Models and rates

Cartesia TTS bills per 1,000 characters synthesized. Per-model rates (defaults from getpatter.pricing): Override per-call via Patter(pricing={"cartesia_tts": {"models": {"sonic-3": {"price": ...}}}}).

Languages

language="en" by default. Sonic-3 supports 30+ languages — pass any Cartesia-supported BCP-47 code ("es", "fr", "de", "it", "pt", "ja", "zh", …). Voice cloning works across all of them — the same voice ID will speak whichever language you target.

Telephony optimization

Use the carrier-aware factories so audio reaches Patter’s telephony adapter at the carrier’s native sample rate, skipping a resample step:

Options

Low-level usage