salmon-lighter-12882
03/01/2025, 11:07 PMgray-monkey-83525
03/01/2025, 11:07 PMelevenlabs.TTS
class from the LiveKit plugins. You need to specify the voice configuration and model when creating an instance of the TTS class. Here's a basic example:
from livekit.plugins import elevenlabs
# Create an instance of ElevenLabs TTS
tts = elevenlabs.TTS(
model_id="eleven_turbo_v2", # Specify the TTS model
api_key="YOUR_ELEVENLABS_API_KEY" # Your ElevenLabs API key
)
# Use the TTS instance in your application
For more details on the parameters and usage, refer to the Eleven Labs TTS documentation.
Would you like more detail on integrating this into a LiveKit agent?
Sources:
- Eleven Labs TTS documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.salmon-lighter-12882
03/01/2025, 11:09 PMgray-monkey-83525
03/01/2025, 11:09 PM