Talk to the Web: Building Hybrid Voice Agents with Gemini and Antigravity CLI
summary
Demo code builds a voice agent that runs entirely in the browser using Web Speech API, SpeechSynthesisUtterance, Chrome Prompt API and small models (e.g., Cocoro 82M) to improve TTS and interruption detection; an alternative pipeline uses Gemini Live via ephemeral tokens to stream native audio in real time. The repo provides one web component, a token server pattern to avoid leaking API keys, and Antigravity CLI automation that splits tasks into worker agents and a verifier. Gemini Live supports dozens of languages.
AI-written summary · about
chapters (21)
- 0:00Welcome and introduction
- 3:22Why voice agents matter
- 5:51Workshop structure and demos
- 7:20Building offline voice agents
- 10:15Speech synthesis in browser
- 13:06Chrome’s built-in AI models
- 18:05Integrating voice agent components
- 20:36Handling streaming and interruptions
- 23:25Optimizing model context and voice
- 29:14First demo: Offline voice agent
- 30:40Limitations of local agents
- 31:44Cloud credits and setup
- 32:25Gemini Live API overview
- 33:55Security with ephemeral tokens
- 37:05Second demo: Cloud voice agent
- 41:20Switching between engines
- 42:03Introducing Antigravity CLI
- 43:50Managing context windows
- 45:18Gemini 4 Carbon and agents
- 47:49Summary and open-source project
- 49:36Resources and closing
