Anam video avatar service for Pipecat
Project description
Pipecat Anam Integration
Generate real-time video avatars for your Pipecat AI agents with Anam.
Maintainer: Anam (@anam-org)
Installation
pip install pipecat-anam
Or with uv:
uv add pipecat-anam
You'll also need Pipecat with the services you use (STT, TTS, LLM, transport). For the example:
pip install "pipecat-ai[deepgram,cartesia,google,daily,runner,webrtc]"
pip install python-dotenv
The webrtc extra is required for the built-in WebRTC transport (-t webrtc). Omit it if you only use Daily (-t daily).
Prerequisites
- Anam API key
- API keys for STT, TTS, and LLM (e.g., Deepgram, Cartesia, Google)
- Daily.co API key for WebRTC transport (optional)
Usage with Pipecat Pipeline
The AnamVideoService wraps around Anam's Python SDK for a seamless integration with Pipecat to create conversational AI applications where an Anam avatar provides synchronized video and audio output while your application handles the conversation logic. The AnamVideoService iterates over the (decoded) audio and video frames from Anam and passes them to the next service in the pipeline.
enable_audio_passthrough=True bypasses Anam's orchestration layer and renders the avatar directly from TTS audio.
enable_session_replay=False disables session recording on Anam's backend.
from anam import PersonaConfig
from pipecat_anam import AnamVideoService
persona_config = PersonaConfig(
avatar_id="your-avatar-id",
enable_audio_passthrough=True,
)
anam = AnamVideoService(
api_key=os.environ["ANAM_API_KEY"],
persona_config=persona_config,
api_base_url="https://api.anam.ai",
api_version="v1",
)
pipeline = Pipeline([
transport.input(),
stt,
context_aggregator.user(),
llm,
tts,
anam, # Video avatar (returns synchronized audio/video)
transport.output(),
context_aggregator.assistant(),
])
See example.py for a complete working example.
Running the Example
- Install dependencies:
pip install -e ".[dev]"
pip install "pipecat-ai[deepgram,cartesia,google,daily,runner,webrtc]"
- Set up your environment:
cp env.example .env
# Edit .env with your API keys
- Run:
python example.py -t daily
Or with the built-in WebRTC transport:
python example.py -t webrtc
The bot will create a room (or use the built-in client) with a video avatar that responds to your voice.
Compatibility
- Tested with Pipecat v0.0.100+
- Python 3.10+
- Daily transport or built-in WebRTC transport
License
BSD-2-Clause - see LICENSE
Support
- Anam Lab (Build and test your persona and get your avatar_id.)
- Anam Documentation (API reference and SDK documentation)
- Anam Community Slack
- Pipecat Discord (
#community-integrations)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pipecat_anam-0.0.1.tar.gz.
File metadata
- Download URL: pipecat_anam-0.0.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88675a098af480dd8e2a5d7c45f348f5672f9462803dfdecd5fbc82de096784c
|
|
| MD5 |
b2969dbfc53665c91e6bf09d8c90f15e
|
|
| BLAKE2b-256 |
5a41029ef958315476b7738b250dc5b6c3fb1e7a0684eb52d0eff8c503e827d8
|
Provenance
The following attestation bundles were made for pipecat_anam-0.0.1.tar.gz:
Publisher:
release-stable.yml on anam-org/pipecat-anam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pipecat_anam-0.0.1.tar.gz -
Subject digest:
88675a098af480dd8e2a5d7c45f348f5672f9462803dfdecd5fbc82de096784c - Sigstore transparency entry: 991838386
- Sigstore integration time:
-
Permalink:
anam-org/pipecat-anam@50919ed62822e4781a26850b5f0b1dd5a74154b7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/anam-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-stable.yml@50919ed62822e4781a26850b5f0b1dd5a74154b7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pipecat_anam-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pipecat_anam-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17e6cb6c7388907f279f574d0b002ff985da566ebeb83af1425beeb8f71f8041
|
|
| MD5 |
d3b1426983d32e56308aeea26296e6b2
|
|
| BLAKE2b-256 |
3577645583d9e7c3c88a0a5f9db39b0b26ca1971101ff6fa41ffe3f6b93f2f6d
|
Provenance
The following attestation bundles were made for pipecat_anam-0.0.1-py3-none-any.whl:
Publisher:
release-stable.yml on anam-org/pipecat-anam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pipecat_anam-0.0.1-py3-none-any.whl -
Subject digest:
17e6cb6c7388907f279f574d0b002ff985da566ebeb83af1425beeb8f71f8041 - Sigstore transparency entry: 991838390
- Sigstore integration time:
-
Permalink:
anam-org/pipecat-anam@50919ed62822e4781a26850b5f0b1dd5a74154b7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/anam-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-stable.yml@50919ed62822e4781a26850b5f0b1dd5a74154b7 -
Trigger Event:
workflow_dispatch
-
Statement type: