cuddly-crowd-48028
08/27/2025, 7:13 AMtall-airline-16756
08/27/2025, 7:13 AMtall-airline-16756
08/27/2025, 7:14 AMpip install "livekit-agents[elevenlabs]~=1.2".
• Don’t forget to set your ElevenLabs API key as an environment variable like this: ELEVEN_API_KEY=<your-api-key>, or you can pass it directly when you create the TTS object.
• Also, in your code, swap out model_id for model. So, you’d use something like model="eleven_monolingual_v1".
Here’s a little example with those tweaks:
from livekit.plugins import elevenlabs
tts = elevenlabs.TTS(
api_key=os.getenv("ELEVENLABS_TTS_API_KEY"),
voice_id="21m00Tcm4TlvDq8ikWAM", # Rachel - Professional female voice
model="eleven_monolingual_v1" # High quality, low latency model
)
If you hit any bumps or want to chat more about it, just let me know—I’m here to help!
Sources: ElevenLabs TTS integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/stt.p... | Working with plugins | LiveKit Docs