agreeable-forest-33528
12/12/2025, 7:02 PMtall-airline-16756
12/12/2025, 7:02 PMtall-airline-16756
12/12/2025, 7:02 PMRealtimeModel) or ElevenLabs plugins already.
With those details I’ll provide the exact integration options and example config steps.
Sources: Gemini Live API plugin | LiveKit docs | ElevenLabs TTS | LiveKit Docs | ElevenLabs TTS plugin guide | LiveKit Docs | ElevenLabs STT plugin guide | LiveKit docs | ElevenLabs STT | LiveKit docsagreeable-forest-33528
12/12/2025, 7:20 PMtall-airline-16756
12/12/2025, 7:20 PMmodalities=[Modality.TEXT] (or the equivalent).
2. Configure ElevenLabs as the Agent session tts provider with your ElevenLabs voice_id and model.
3. Provide API keys for both providers (Google and ElevenLabs) via env vars or API key fields.
4. (Optional) Choose your STT provider (Google STT or ElevenLabs STT) if you need live transcription.
Python example
from livekit.agents import AgentSession
from livekit.plugins import google, elevenlabs
from google.genai.types import Modality
session = AgentSession(
llm=google.realtime.RealtimeModel(
model="gemini-2.5-flash-native-audio-preview-09-2025",
api_key="YOUR_GOOGLE_API_KEY",
modalities=[Modality.TEXT], # text-only output from Gemini
),
tts=elevenlabs.TTS(
voice_id="YOUR_ELEVEN_VOICE_ID",
model="eleven_multilingual_v2",
api_key="YOUR_ELEVEN_API_KEY",
),
stt=google.STT(), # optional
)
Node.js example
import * as google from '@livekit/agents-plugin-google';
import * as elevenlabs from '@livekit/agents-plugin-elevenlabs';
import { AgentSession } from '@livekit/agents';
const session = new AgentSession({
llm: new google.realtime.RealtimeModel({
model: "gemini-2.5-flash-native-audio-preview-09-2025",
apiKey: process.env.GOOGLE_API_KEY,
modalities: [google.types.Modality.TEXT],
}),
tts: new elevenlabs.TTS({
voice: { id: "YOUR_ELEVEN_VOICE_ID" },
model: "eleven_multilingual_v2",
apiKey: process.env.ELEVEN_API_KEY,
}),
stt: new google.STT(), // optional
});
Key points
• modalities=[Modality.TEXT] prevents Gemini from producing audio so ElevenLabs can synthesize speech.
• Provide GOOGLE_API_KEY and ELEVEN_API_KEY (env vars or in constructors).
• ElevenLabs TTS gives control over voice, model, and synthesis settings.
• Plugin packages: Python (install LiveKit agents with google & elevenlabs extras), Node.js (@livekit/agents-plugin-google, @livekit/agents-plugin-elevenlabs).
If you want, I can:
• Show how to stream Gemini text responses directly to ElevenLabs for low-latency playback.
• Provide a complete sample that includes STT -> Gemini -> ElevenLabs playback flow.
Which one would you like next?
Sources: Gemini Live API plugin | LiveKit docs | ElevenLabs TTS plugin guide | LiveKit Docs | Google Gemini LLM plugin guide | LiveKit Docsagreeable-forest-33528
12/12/2025, 7:23 PMtall-airline-16756
12/12/2025, 7:23 PMgemini-2.5-flash-native-audio-preview-09-2025 accepts the TEXT modality. You can set modalities=[Modality.TEXT] to force text-only output and route that text to ElevenLabs TTS.