Skip to main content
Add a real-time, lip-synced video avatar to a voice agent. The avatar consumes the agent’s spoken audio and renders a talking-head video that streams to the browser alongside the voice.
Avatars are WebRTC only, on cascade and speech-to-speech agents alike. A phone (Twilio/WhatsApp) call has no video channel, so the avatar is skipped there and the call’s event log records avatar.unavailable with reason transport.

Configuration

Set transport: "webrtc" and an avatar block. pipeline_mode can be "cascade" or "s2s" (any S2S provider).

Options

Providers

HeyGen needs a LiveAvatar key, not a HeyGen key. Pipecat targets api.liveavatar.com; HeyGen’s old /v1/streaming.* API is sunset. Get the key from app.liveavatar.com.

Required API Keys

Tavus also requires the tavus extra (pip install -e . pulls daily-python).

Pipeline

On a speech-to-speech agent the avatar takes TTS’s place, right after the realtime model:
The avatar provider runs its own WebRTC leg to its servers (HeyGen → LiveKit, Tavus → Daily) and emits video frames back into the pipeline; TurnCall’s SmallWebRTC transport carries them to the browser. The provider’s leg is internal — the user-facing transport stays SmallWebRTC.

Latency

The avatar adds an inherent render/buffer delay (~600ms+) on top of the agent’s response — it cannot be tuned away, only minimized by provider choice. Tavus is currently the lowest-latency option. See examples/video-avatar for a runnable setup script.