Gemini 3.1 Flash Live API வழிகாட்டி: நேரடி குரல், கேமரா மற்றும் திரை பகிர்வு முகவர்கள்
Gemini 3.1 Flash Live உடன் குறைந்த-latency பல்முக முகவர்கள் — WebSocket, native audio, 1 FPS கேமரா/திரை, ephemeral tokens.
ஆகஸ்ட் 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.
| Layer | Role |
|---|---|
| Transport | Stateful WSS |
| Input | PCM16 @ 16 kHz, video ≤1 FPS |
| Output | PCM @ 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: minimal–high. 90+ languages. Ephemeral tokens — never embed API keys in clients.
Migration from 2.5
Use gemini-3.1-flash-live-preview; thinkingBudget → thinkingLevel; 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.