Overview
Cartesia provides high-quality text-to-speech synthesis with two service implementations:CartesiaTTSService
(WebSocket-based) for real-time streaming with word timestamps, and CartesiaHttpTTSService
(HTTP-based) for simpler batch synthesis. CartesiaTTSService
is recommended for interactive applications requiring low latency and interruption handling.
Cartesia TTS API Reference
Pipecat’s API methods for Cartesia TTS integration
Example Implementation
Complete example with interruption handling
Cartesia Documentation
Official Cartesia API documentation and features
Voice Library
Browse and test available voices
Installation
To use Cartesia services, install the required dependencies:Prerequisites
Cartesia Account Setup
Before using Cartesia TTS services, you need:- Cartesia Account: Sign up at Cartesia
- API Key: Generate an API key from your account dashboard
- Voice Selection: Choose voice IDs from the voice library
Required Environment Variables
CARTESIA_API_KEY
: Your Cartesia API key for authentication