LiveAvatar
Learn how to integrate ElevenAgents with HeyGen’s LiveAvatar for real-time avatar streaming
Learn how to integrate ElevenAgents with HeyGen’s LiveAvatar for real-time avatar streaming
The LiveAvatar integration connects ElevenAgents with HeyGen’s LiveAvatar platform to create interactive avatar experiences. This integration combines ElevenLabs Agents (handling audio interactions) with LiveAvatar’s real-time avatar video streaming, enabling low-latency visual conversations with AI avatars.
With this integration you can:
The integration uses LiveAvatar’s LITE session mode where responsibilities are divided between the two platforms:
When a LITE mode session starts with an ElevenAgents configuration, LiveAvatar dispatches a worker that connects to your ElevenLabs agent. The agent’s audio output drives the avatar’s lip sync and animations in real-time.
Before setting up the integration, ensure you have:
The ElevenLabs Agent needs to have audio input and output formats set to PCM 24000 Hz. This can be set in Voice settings > TTS output formats, and Advanced > User input audio format.
You need two items from your ElevenLabs account:
Agent ID: Navigate to Agents Platform > Agents and copy the ID of the agent you want to use
API Key: Go to Settings > API Keys and generate a new API key (or use an existing one)
The API key needs to have convai_read, user_read, and voices_read permissions.
LiveAvatar requires your ElevenLabs API key to be registered through their secrets endpoint. This registration encrypts your key using Amazon KMS and returns a secret_id for use in sessions.
Make a POST request to LiveAvatar’s secrets endpoint:
The response contains your secret_id. Store this secret_id for use when starting sessions.
When starting a LiveAvatar session, use LITE mode and include your ElevenAgents configuration:
Refer to the LiveAvatar session API documentation for complete details on session management.
The integration delivers events through LiveKit rooms, using the same event structure as LiveAvatar’s FULL mode. This allows you to:
Configure your event handlers according to the LiveAvatar events documentation.
This integration involves separate billing from both platforms:
The avatar streaming is billed only for the video component, while all agents usage (audio and LLM) is charged separately through your ElevenLabs account.