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.

Installation

To use ElevenLabs services, install the required dependencies:
pip install "pipecat-ai[elevenlabs]"

Prerequisites

ElevenLabs Account Setup

Before using ElevenLabs TTS services, you need:
  1. ElevenLabs Account: Sign up at ElevenLabs
  2. API Key: Generate an API key from your account dashboard
  3. Voice Selection: Choose voice IDs from the voice library

Required Environment Variables

  • ELEVENLABS_API_KEY: Your ElevenLabs API key for authentication