Skip to main content

ElevenLabs TTS

Reference for ElevenLabs TTS in LiveKit Inference.

Overview

LiveKit Inference offers voice models powered by ElevenLabs. Pricing information is available on the pricing page.

Model IDLanguages
elevenlabs/eleven_flash_v2
en
elevenlabs/eleven_flash_v2_5
enjazhdehifrkoptitesidnltrfilplsvbgroarcselfihrmsskdataukruhunovi
elevenlabs/eleven_turbo_v2
en
elevenlabs/eleven_turbo_v2_5
enjazhdehifrkoptitesidnltrfilplsvbgroarcselfihrmsskdataukruhunovi
elevenlabs/eleven_multilingual_v2
enjazhdehifrkoptitesidnltrfilplsvbgroarcselfihrmsskdataukru

Usage

To use ElevenLabs, pass a descriptor with the model and voice to the tts argument in your AgentSession:

from livekit.agents import AgentSession
session = AgentSession(
tts="elevenlabs/eleven_turbo_v2_5:alice",
# ... llm, stt, vad, turn_detection, etc.
)
import { AgentSession } from '@livekit/agents';
session = new AgentSession({
tts: "elevenlabs/eleven_turbo_v2_5:alice",
// ... tts, stt, vad, turn_detection, etc.
});

Parameters

To customize additional parameters, use the TTS class from the inference module:

from livekit.agents import AgentSession, inference
session = AgentSession(
tts=inference.TTS(
model="elevenlabs/eleven_turbo_v2_5",
voice="alice",
language="en"
),
# ... tts, stt, vad, turn_detection, etc.
)
import { AgentSession } from '@livekit/agents';
session = new AgentSession({
tts: new inference.TTS({
model: "elevenlabs/eleven_turbo_v2_5",
voice: "alice",
language: "en"
}),
// ... tts, stt, vad, turn_detection, etc.
});
modelstringRequired

The model ID from the models list.

voicestringRequired

See voices for guidance on selecting a voice.

languagestringOptional

Language code for the input text. If not set, the model default applies.

extra_kwargsdictOptional

Additional parameters to pass to the ElevenLabs TTS API, including inactivity_timeout, and apply_text_normalization. See the provider's documentation for more information.

Voices

LiveKit Inference supports all of the default voices available in the ElevenLabs API. You can explore the available voices in the ElevenLabs voice library (free account required), and use the voice by copying its ID into your LiveKit agent session.

Custom & community voices unavailable

Custom and community ElevenLabs voices, including voice cloning, are not yet supported in LiveKit Inference. To use these voices, create your own ElevenLabs account and use the ElevenLabs plugin for LiveKit Agents instead.

The following is a small sample of the ElevenLabs voices available in LiveKit Inference.

Alice

Clear and engaging, friendly British woman

🇬🇧
Chris

Natural and real American male

🇺🇸
Eric

A smooth tenor Mexican male

🇲🇽
Jessica

Young and popular, playful American female

🇺🇸

Additional resources

The following links provide more information about ElevenLabs in LiveKit Inference.