wooden-megabyte-91316
07/28/2025, 4:09 PMtall-airline-16756
07/28/2025, 4:09 PMtall-airline-16756
07/28/2025, 4:10 PMpip install "livekit-agents[elevenlabs]"
◦ Option 2: Install the plugin directly:
pip install livekit-plugins-elevenlabs
• Ensure the correct import syntax in your code:
from livekit.plugins import elevenlabs
• Set up your ElevenLabs API key as an environment variable:
export ELEVEN_API_KEY="your-api-key-here"
• If the issue persists, upgrade your LiveKit agents package to ensure compatibility:
pip install --upgrade livekit-agents
After completing these steps, the import error should be resolved.
Sources: ElevenLabs TTS integration guide | LiveKit Docs | pipeline-tts/elevenlabs_tts.py | livekit-agents/pyproject.toml