How pradeeptalari14/tp-gemini-2-flash-live works
This repository presents a Gemini Live multimodal streaming gateway: audio and video are ingested, video frames are rate-limited, and media payloads are prepared for a bidirectional Gemini session. The sampled Python files implement packet metadata and payload formatting, but do not show a live WebSocket connection or connect the multiplexer to the client; that relationship is documented in the README. Grounding, tool calling, interruption handling, and Kubernetes deployment are also documented capabilities, not verified here as implemented in the sampled source.
Main entry points: audio_video_multiplexer.py AV multiplexer · gemini_live_stream_client.py Live session client · k8s-gemini-live-gateway.yaml Kubernetes gateway deployment
Components 10
Media ingress
- AV multiplexer
audio_video_multiplexer.py
Gemini session
- Live session client
gemini_live_stream_client.py - Barge-in handling
Model services
- Gemini Live API
- Google Search grounding
- Tool calling
Deployment
- Kubernetes gateway deployment
k8s-gemini-live-gateway.yaml
Other components
- Edge device
- Audio playback
- Operator
Connections 8
- Edge device → AV multiplexer: sends media
README.md - AV multiplexer → Live session client: forwards media
README.md - Live session client → Gemini Live API: streams bidirectionally
README.md - Gemini Live API → Google Search grounding: uses grounding
README.md - Gemini Live API → Tool calling: dispatches tools
README.md - Gemini Live API → Barge-in handling: returns audio
README.md - Barge-in handling → Audio playback: interrupts playback
README.md - Operator → Kubernetes gateway deployment: applies deployment
README.md