elevenlabs-python is the official Python SDK for the ElevenLabs API, giving developers a convenient way to access ElevenLabs’ high-quality, lifelike voices. The library wraps the HTTP API into a typed Python client, so you can perform text-to-speech, streaming, voice cloning, voice management, and agents-related operations with simple method calls. It exposes ElevenLabs’ main models such as Eleven Multilingual v2, Eleven Flash v2.5, and Eleven Turbo v2.5, each targeting different trade-offs between latency, cost, and quality. The SDK is designed for quick setup: after installing the package and setting an API key, you can generate speech in multiple languages and play or process the resulting audio bytes. It includes helper utilities (like play and stream) so you can either play audio locally or integrate it into your own playback or networking pipeline.
Features
- Official Python client for ElevenLabs text-to-speech, streaming, and agents APIs
- Simple methods for one-shot TTS (text_to_speech.convert) and low-latency streaming TTS (text_to_speech.stream)
- Access to major ElevenLabs models (Multilingual, Flash, Turbo) with multi-language support
- Voice management APIs to search voices, inspect settings, and personalize styles
- Programmatic voice cloning by uploading audio samples and creating new voice profiles
- Optional synchronous and asynchronous workflows for integrating into real-time or large-scale applications