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