cuddly-crowd-48028
09/07/2025, 7:05 PMtall-airline-16756
09/07/2025, 7:05 PMtall-airline-16756
09/07/2025, 7:05 PMpip install "livekit-agents[elevenlabs]~=1.2".
• Authentication: Just set your ElevenLabs API key as the environment variable ELEVEN_API_KEY, and you’re good to go.
• Usage: Use the TTS service inside an AgentSession or as a standalone speech generator. It even supports streaming audio synthesis with WebSockets and lets you customize things like voice, model, and language.
• SSML Support: Want to tweak pronunciation? You can use SSML tags like phoneme to make it sound just right.
• Languages: It supports multiple languages, identified by ISO-639-1 codes (like "en" for English).
If you want to dive deeper, check out the plugin reference, take a peek at the GitHub repository, or explore the ElevenLabs documentation. Happy coding!
Sources: ElevenLabs TTS integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/stt.p...