i need assistance with regards to eleven labs tts
# ask-ai
c
i need assistance with regards to eleven labs tts
t
Thanks for reaching out, raj. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just wanted to share that LiveKit now supports integration with ElevenLabs for text-to-speech (TTS) functionality, which means you can get super realistic, human-like voice generation right within LiveKit's Agents framework. Here’s a quick rundown to get you started: • Installation: You can easily install the plugin via PyPI by running
pip 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...