Simon Willison1 min readintermediate
Gemini Live audio
Summary
Simon Willison shows a minimal JavaScript UI that talks to Google’s Gemini 3.8 Live speech‑to‑speech models via a WebSocket API, using the Web Audio API for capture/playback and no external libraries.
- Google’s Gemini 3.8 Live and Live Extended Thinking expose a bidirectional WebSocket endpoint for real‑time speech‑to‑speech.
- A tiny HTML/JS client can stream microphone audio, send it to the model, and play back the model’s audio response using the Web Audio API.
- The implementation (gemini‑live.html) is library‑free and demonstrates how to select model, voice preset, and optional system prompt, plus interrupt the model mid‑utterance.
Provides a concrete, low‑dependency example for building real‑time LLM‑driven voice assistants in the browser, useful for engineers exploring AI‑augmented UI or prototyping speech interfaces without heavy SDKs.
5/10




