victorious-monitor-50234
11/12/2025, 5:12 AMtall-airline-16756
11/12/2025, 5:12 AMtall-airline-16756
11/12/2025, 5:13 AMpip install livekit-plugins-google
◦ Node.js: pnpm add @livekit/agents-plugin-google@1.x
1. Authentication: Make sure to set up your API key or service account credentials:
◦ For Gemini API: Use GOOGLE_API_KEY.
◦ For Vertex AI: Use GOOGLE_APPLICATION_CREDENTIALS.
1. Initialize the RealtimeModel: Configure your model with parameters like model, voice, modalities, and instructions. Some example models are gemini-2.0-flash-live-001 and gemini-live-2.5-flash-preview.
2. Start the Session: Connect your session to a LiveKit room and launch the agent. You can enable video if you want to include visual input.
If you’d like to see it in action, feel free to check out the Gemini LiveKit Playground. And please don’t hesitate to reach out if you have any questions or need a hand with the setup—I’m here to help!
Sources: Gemini Live API plugin | LiveKit docs | Real-time AI Models & Streaming | livekit/livekit_composite | DeepWiki | Gemini Live API plugin | LiveKit docs | examples/voice_agents/README.md | README.mdvictorious-monitor-50234
11/12/2025, 5:15 AMtall-airline-16756
11/12/2025, 5:16 AMgemini-live-2.5-flash-preview. Some parts are still experimental, so they might not be completely stable just yet.
About interruptions: yes, you can definitely interrupt Gemini’s live model while it’s speaking. The LiveKit plugin offers an interrupt() method in the RealtimeModel class that lets you signal the model to stop its current response. If you want, this behavior is flexible—you can even disable interruptions by setting the activity_handling option to NO_INTERRUPTION.
If you have any questions or want a hand with implementing these features, just let me know. I’m here to help!
Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/real... | Gemini Live API plugin | LiveKit docs | plugins/google/src/beta/realtime/api_proto.tsvictorious-monitor-50234
11/12/2025, 5:20 AMtall-airline-16756
11/12/2025, 5:21 AMallow_interruptions parameter to turn interruptions on or off for the entire session.
• Speech-Level: For more control, you can override interruptions for individual utterances using the allow_interruptions parameter in methods like say() or generate_reply().
• Programmatic Interruptions: And if you ever want to stop the agent immediately, you can call the interrupt() method anytime, no matter the current settings.
If you’d like, I’m here to help you set this up or customize the interruption behavior to fit your needs perfectly. Just let me know!
Sources: agents/src/voice/speech_handle.ts | Agent Session & Client Integration | livekit/livekit_composite | DeepWiki | Agent speech and audio | LiveKit docs | Turn detection and interruptions | LiveKit Docs | livekit-agents/livekit/agents/voice/agent_session.py