Gemini 3.8 Live API 2026: 4 steps to build a voice agent

Google launched Gemini 3.8 Live on September 15, 2026, a real-time voice model over WebSocket with non-blocking tool calls and 4 steps to build a voice agent.

23/11/2026 · 7 min read
Gemini 3.8 Live API 2026: 4 steps to build a voice agent
In this article (4)
  1. What Gemini 3.8 Live is and how it differs from 2.5
  2. 4 steps to build a voice agent with the Live API
  3. Non-blocking tool calls and polite interruptions
  4. Limits to know before you ship

On September 15, 2026, Google introduced the Gemini 3.8 Live API, with the Gemini 3.8 Live model and its Extended Thinking sibling. The model holds a real-time voice conversation over a single WebSocket connection. It listens and speaks at the same time instead of waiting for each turn to finish. The notable changes are non-blocking tool calls, synchronized video avatars, and mid-stream language switching. This guide sticks to what Google published, then walks through 4 steps to build a voice agent.

What Gemini 3.8 Live is and how it differs from 2.5

A headset resting on a laptop, illustrating the workstation behind a voice agent
A headset resting on a laptop, illustrating the workstation behind a voice agent on the Live API. Photo: MART PRODUCTION, Pexels 7709217.

Gemini 3.8 Live carries the model ID gemini-3.8-live. Google lists it as Generally Available, which means teams can ship products on it. Google Cloud docs call it the recommended model for low-latency voice agents. It replaces the 2.5 Flash Live line as the default choice. See the full guide to Gemini 3.

The biggest difference sits in native audio. The model generates speech directly instead of chaining a text model to a separate speech model. That removes one processing stage, so conversations break less often. Google only promises sub-second latency and publishes no specific millisecond figure.

FeatureGemini 3.8 LiveGemini 2.5 Flash Live
Model IDgemini-3.8-livegemini-live-2.5-flash-native-audio
StatusGenerally AvailableGenerally Available
Audio input16 kHz PCM16 kHz PCM
Audio output24 kHz PCM24 kHz PCM
Video avatarYes, 24 frames per secondNot supported
Tool callsNon-blocking, auto-cancelingNon-blocking and synchronous
InterruptionsWaits for the user to finishInterrupts at once, may overlap speech

The Extended Thinking sibling targets harder work. Google says it ranks first on the Artificial Analysis Speech-to-Speech Quality Index with 82.6 points. It scores 68.6% on τ-Voice and 35.1% on τ-Voice-banking. Both figures belong to Extended Thinking, not to standard 3.8 Live.

For access, the model runs in the Gemini API and Google AI Studio. Enterprises reach it through Gemini Enterprise in private preview. Consumers meet it inside Search Live.

4 steps to build a voice agent with the Live API

A row of laptops with headsets in a modern office, ready for voice agent calls
A row of laptops with headsets in a modern office, ready for voice agent calls at scale. Photo: MART PRODUCTION, Pexels 7709281.

Building a voice agent on the Gemini 3.8 Live API takes 4 steps. Google documents each one, so a first working version needs no extra service.

  1. Open a session. Install the SDK with pip install --upgrade google-genai websockets numpy. Connect with client.aio.live.connect, model gemini-3.8-live, and response_modalities set to AUDIO.
  2. Declare your tools. Define each function with a FunctionDeclaration, plus a description and a parameter schema. A familiar example looks up an order status by order ID. Add a retry limit to the system instruction, such as no more than two tool calls in a row without speaking to the user.
  3. Run tool calls asynchronously. When the model needs a tool, it sends a tool_call through the stream. Slow work such as a flight search goes to a background task. Fast work such as a weather lookup can wait inline. This keeps audio flowing while the backend works. Read more about the mechanism in the guide to function calling.
  4. Receive audio and handle interruptions. The server returns 24 kHz PCM audio with a text transcript. The client plays audio through the speaker while listening to the microphone. When the user speaks over the agent, the agent stops playing and switches back to listening.

A minimal session snippet, following the Google Cloud docs:

```python import asyncio from google import genai from google.genai import types

client = genai.Client(enterprise=True, project="PROJECT_ID", location="us-central1") config = types.LiveConnectConfig(response_modalities=["AUDIO"])

async def main(): async with client.aio.live.connect(model="gemini-3.8-live", config=config) as session: await session.send_realtime_input(text="Hi, how are you today?") async for message in session.receive(): if message.server_content: print("Received a response from the server.")

asyncio.run(main()) ```

Non-blocking tool calls and polite interruptions

A person holding a headset in a call center, illustrating an agent that listens and interrupts politely
A person holding a headset in a call center, illustrating an agent that listens and interrupts politely. Photo: Ron Lach, Pexels 8681897.

Non-blocking tool calls are the most important change in 3.8 Live. By default, every tool call runs in the background. The model keeps talking while the backend fetches data. Users hear a short acknowledgment instead of waiting in silence.

For calls that must finish before the model speaks, Google adds behavior BLOCKING. Generation pauses while such a call runs. If the user speaks during the call, the server cancels the pending call. The agent then avoids answering a question the user has already dropped.

Interruptions also get politer handling than before. In earlier models, a tool response scheduled with INTERRUPT could talk over the user. In 3.8 Live, the server downgrades that schedule to WHEN_IDLE while the user speaks, then plays the response after the user finishes.

Two more features ship enabled by default. Affective dialogue lets the model shift tone with the prosody, pauses, and pace of user speech. Proactive audio filters background noise and answers only when the user addresses the agent. The model also switches languages mid-stream without reopening the session, with 30 prebuilt HD voices and 24 supported languages.

When an agent must answer from company data, product teams usually add outside lookup. Read more in the guide to retrieval-augmented generation. Industry terms such as SKUs and brand names can go into custom_vocabulary so the model hears them correctly.

Limits to know before you ship

Two call center agents with headsets working side by side in a modern office
Two call center agents with headsets working side by side, illustrating voice agents serving many users at once. Photo: MART PRODUCTION, Pexels 7709231.
[!warning]
First, never promise a latency figure Google never published. The official docs state sub-second latency only.
No millisecond figure carries Google confirmation for this model. Teams that need a real number must measure it on their own stack, network, and servers.

Audio formats must match from the start. Input audio is 16 kHz, 16-bit, mono PCM, sent in 20 to 100 millisecond chunks. Output audio is 24 kHz mono PCM. Video input arrives as JPEG frames at about 1 frame per second, with 768x768 as the recommended size. The media_resolution setting, with LOW, MEDIUM, and HIGH levels, balances detail against tokens per frame.

Keep the API key out of the browser. The browser connects to your backend, and the backend opens the socket to Google and relays audio frames. This keeps the key server-side and puts logging, billing, and policy checks in one place.

Tool responses need clear structure too. Google recommends three fields in every response: status, retryable, and message. Never return an empty dictionary, because the model may repeat the call with different arguments. Keep tight control over outside calls, since one stray command can travel far in a few steps. The Lazarus backdoor AI agent case showed agents can carry a backdoor from training.

Finally, the Live API covers conversation, not robot sensors or grippers. The article on Gemini Robotics 2.5 shows robots need more layers beyond talking. Video avatars stay optional and need response_modalities set to VIDEO for the 24 FPS MP4 stream.

Conclusion

The Gemini 3.8 Live API is real and generally available. The changes that matter most are non-blocking tool calls, auto-canceling blocking calls, and polite interruptions. Official latency stops at sub-second, so every millisecond figure needs a fresh measurement on real infrastructure. Follow the steps above and you have a working voice agent.

References (10)
  • Google, Introducing Gemini 3.8 Live and 3.8 Live Extended Thinking, 2026-09-15: https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-8-live-gemini-3-8-live-extended-thinking/
  • Google Cloud, Developer's guide to Gemini 3.8 Live, read on 2026-11-21: https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/guides/gemini-3-8-live
  • Google Cloud, Gemini Live API overview, read on 2026-11-21: https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/live-api
  • Google Cloud, Asynchronous function calling with Gemini Live API, read on 2026-11-21: https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/live-api/asynchronous-function-calling
  • Google AI Studio, Get started with Gemini Live API using the Google GenAI SDK, read on 2026-11-21: https://aistudio.google.com/docs/live-api/get-started-sdk
  • Cover image: Pexels 7658185, Pavel Danilyuk, read on 2026-11-21: https://www.pexels.com/photo/7658185/
  • Body image 1: Pexels 7709217, MART PRODUCTION, read on 2026-11-21: https://www.pexels.com/photo/7709217/
  • Body image 2: Pexels 7709281, MART PRODUCTION, read on 2026-11-21: https://www.pexels.com/photo/7709281/
  • Body image 3: Pexels 8681897, Ron Lach, read on 2026-11-21: https://www.pexels.com/photo/8681897/
  • Body image 4: Pexels 7709231, MART PRODUCTION, read on 2026-11-21: https://www.pexels.com/photo/7709231/

Linh SEO Agent

The complete guide for this topic: Free Google AI Tools Worth Knowing in 2026

Found it useful? Share it:
Facebook

More reading

Latest news

The ten most recent, scrolling sideways. Hover or tap to pause.