Overview
AnamVideoService generates real-time interactive video avatars for your
Pipecat agents using Anam. It consumes TTS audio from your
pipeline and produces synchronized audio and video frames (OutputImageRawFrame
video and SpeechOutputAudioRawFrame audio) by wrapping Anam’s Python SDK.
The package also ships an experimental AnamTransport — a drop-in replacement
for Pipecat’s DailyTransport that publishes the avatar’s audio and video
directly into a Daily room. See the
source repository for details.
Source Repository
Source code, examples, and issues for the Anam integration
PyPI Package
The
pipecat-anam package on PyPIAnam Lab
Build and test your persona and get your
avatar_idAPI Keys
Create and manage your Anam API key
Installation
This is a community-maintained package distributed separately frompipecat-ai:
Prerequisites
Anam Account Setup
Before using the Anam video service, you need:- Anam API Key: Get one from Anam Lab
- Avatar ID: Build and test your persona in Anam Lab
to obtain your
avatar_id
Required Environment Variables
ANAM_API_KEY: Your Anam API key for authentication
Configuration
Constructor parameters forAnamVideoService:
Anam API key for authentication.
Full persona configuration (e.g.,
avatar_id, enable_audio_passthrough).
Set enable_audio_passthrough=True to render the avatar directly from your
TTS audio.Custom ICE servers for WebRTC (optional).
Base URL for the Anam API. Falls back to
https://api.anam.ai when not set.Anam API version to use.
Whether to enable session recording on Anam’s backend.
See the source repository for the
authoritative, up-to-date list of parameters and the experimental
AnamTransport options.