Software Development

How to integrate Gemini Live's vision capabilities into a LiveKit session?

LE Asked by Leo Vargas · 05-01-2025
0 upvotes 18,389 views 0 comments
The question

I want to build an agent that can "see" what the user is showing via their smartphone camera while talking to them. I see that LiveKit recently added support for multimodal models like Gemini 2.0. Is it possible to feed the video track from a LiveKit room directly into Gemini's vision input in real-time, or do I have to take snapshots every few seconds?

3 answers

0
AN
Answered on 11-01-2025

You can actually stream the video track directly. In the LiveKit Python SDK, you can subscribe the agent to the user's video track and use a VideoStream to capture frames. For Gemini Live, you typically use their Realtime API which accepts a media stream. The latency is impressively low—around 300-500ms for visual recognition. This is much better than the "snapshot" approach because the agent can react to movement, like "I see you're holding a red screwdriver," without the user having to stop and wait for an upload.

0
JU
Answered on 13-01-2025

Are you concerned about the bandwidth costs of streaming high-res video to an AI agent for a 10-minute session?

BR 15-01-2025

Definitely a concern. I usually downscale the track to 720p at 15fps before sending it to the agent. Most vision models don't need 4K 60fps to identify objects, and it keeps the LiveKit egress costs manageable.

0
CH
Answered on 18-01-2025

Check out the "Aura" visualizer in the new Agents UI library—it makes the multimodal experience feel much more polished on the frontend.

LE 21-01-2025

Thanks Charles! Having a UI that actually reacts when the agent "sees" something is a huge boost for user engagement.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session