Skip to main content
Build a voice agent using Google Gemini Live for native speech-to-speech processing. Gemini Live processes audio directly without intermediate text conversion, enabling lower latency and more natural conversations. Best for: Multimodal applications requiring audio, video, and text processing with low latency.

How Speech-to-Speech Differs

Standard Pipeline (STT → LLM → TTS):
Speech-to-Speech (Direct):
Speech-to-speech models process audio natively, preserving tone, emotion, and context that may be lost in text transcription.

Prerequisites


Installation


Environment Variables


Pipeline Configuration


Gemini Live Features


Architecture

With Gemini Live, the pipeline is simplified:
A single service handles:
  • Speech recognition
  • Language understanding
  • Response generation
  • Voice synthesis

Quick Start

Inbound Calls

Configure your Plivo number’s Answer URL to your ngrok URL.

Outbound Calls


When to Use Gemini Live

Choose Gemini Live when:
  • You need multimodal capabilities (audio + video + text)
  • Latency is critical
  • You want simplified architecture
  • You’re already in the Google ecosystem
Choose standard STT → LLM → TTS when:
  • You need specific voice characteristics (ElevenLabs, Cartesia)
  • You want to mix providers (e.g., Deepgram STT + OpenAI LLM)
  • You need fine-grained control over each component