LiveAvatar (by HeyGen) provides real-time interactive avatars with lip-sync driven by your agent’s audio. PassDocumentation Index
Fetch the complete documentation index at: https://visionagents.ai/llms.txt
Use this file to discover all available pages before exploring further.
liveavatar.Avatar() to the agent’s avatar parameter to stream synchronized video and audio into the call.
Vision Agents requires a Stream account
for real-time transport. Get a LiveAvatar API key and avatar ID from the
LiveAvatar dashboard.
Installation
Quick Start
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
avatar_id | str | None | LiveAvatar avatar UUID (defaults to LIVEAVATAR_AVATAR_ID env var) |
api_key | str | None | API key (defaults to LIVEAVATAR_API_KEY env var) |
base_url | str | None | Override the LiveAvatar API base URL |
is_sandbox | bool | True | Sandbox sessions don’t burn credits but are duration-capped |
max_session_duration | int | None | Session length cap in seconds; None uses the API default |
video_quality | str | "high" | "low", "medium", "high", or "very_high" |
video_encoding | str | "H264" | "H264" or "VP8" |
width | int | 1280 | Output video width in pixels |
height | int | 720 | Output video height in pixels |
fps | int | 30 | Output video frame rate |
buffer_seconds | float | 1.0 | Max video buffer depth in seconds ahead of audio playback |
How It Works
LiveAvatar runs in LITE mode with the custom-agent integration path:- Your agent’s TTS (or Realtime LLM) audio is streamed to LiveAvatar over WebSocket
- LiveAvatar generates lip-synced avatar video and audio
- Synchronized A/V is published to call participants via Stream Edge
- LLM generates text → TTS converts to audio → Audio sent to LiveAvatar → LiveAvatar returns synchronized avatar video and audio
- Realtime LLM generates audio → Audio sent to LiveAvatar → LiveAvatar returns synchronized avatar video and audio
Next Steps
Build a Voice Agent
Get started with voice
Build a Video Agent
Add video processing
Build Your Own Avatar
Subclass the
Avatar base class
