Skip to main content
The Voice Agent orchestrates the complete voice interaction pipeline: VAD → STT → LLM → TTS. Build hands-free voice assistants with a single API.
See the Voice Agent in action! The Flutter Starter Example includes a complete voice assistant implementation.

Overview

The pipeline automatically:
  1. Listens for speech using VAD
  2. Transcribes what the user says
  3. Generates an AI response
  4. Speaks the response back

Prerequisites

Load all required models before starting a voice session:

Basic Usage

VoiceSessionConfig

Configure voice session behavior:

VoiceSessionHandle

Control the voice session:

Voice Session Events

Complete Example

Push-to-Talk Mode

For push-to-talk instead of continuous listening:

Component States

Check individual component states:

Cleanup

See Also

VAD

Voice activity detection

STT

Speech-to-text

LLM

Text generation

TTS

Text-to-speech