Gemini Omni
सर्व लेखांकडे परत
10 मिनिटे वाचन

Gemini 3.1 Flash Live API मार्गदर्शक: रिअल-टाइम व्हॉइस, कॅमेरा आणि स्क्रीन-शेअर एजंट

Gemini 3.1 Flash Live सह लो-लेटन्सी मल्टिमोडल एजंट — WebSocket, नेटिव्ह ऑडिओ, 1 FPS कॅमेरा/स्क्रीन, ephemeral tokens.

Gemini Live APIGemini 3.1 Flash LiveReal-TimeVoice AgentsMultimodalDevelopers2026मराठी

ऑगस्ट 2026 मध्ये Gemini 3.1 Flash Live का महत्त्वाचे

Google ने मार्च 2026 मध्ये Gemini Live API द्वारे Gemini 3.1 Flash Live सुरू केले — ऑगस्टपर्यंत production voice+vision agents साठी शिफारस केलेले मॉडेल. Live स्थायी WebSocket session ठेवते, वेगळे STT/TTS नको.

ऑगस्ट 2026: 2.5 Flash Live deprecated; mature ecosystem; Live + Gemini 3.7 Flash (3.7 Flash घोषणा).

Architecture: WebSocket sessions

Live API is stateful — persistent WSS bidirectional streams for audio, JPEG/PNG video (≤1 FPS), and text. First message: BidiGenerateContentSetup; then BidiGenerateContentRealtimeInput.

LayerRole
TransportStateful WSS
InputPCM16 @ 16 kHz, video ≤1 FPS
OutputPCM @ 24 kHz, transcripts, tools

Server-to-server (proxy) or client-to-server (ephemeral tokens required).

Native audio pipeline

Input PCM16 16 kHz; output 24 kHz. Browser float32 → PCM16. VAD for turns; manual activityStart/activityEnd for push-to-talk.

Camera and screen share

1 FPS JPEG/PNG — camera Q&A, screen code review. Default TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO — send frames only during speech to reduce cost. Limits: 15 min audio-only, 2 min audio+video.

Tools, thinkingLevel, security

Sync tool calling + Search grounding. thinkingLevel: minimalhigh. 90+ languages. Ephemeral tokens — never embed API keys in clients.

Migration from 2.5

Use gemini-3.1-flash-live-preview; thinkingBudgetthinkingLevel; send_realtime_input for text; multi-part events; no NON_BLOCKING tools.

3.1 Live vs 3.7 REST

Live: WebSocket, sub-second voice, 128K context. 3.7: HTTP, coding/RAG, 2.5M tokens.