Skip to main content

Anam video avatar service for Pipecat

Project description

Pipecat Anam Integration

PyPI - Version

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

  1. Install dependencies:
pip install -e ".[dev]"
pip install "pipecat-ai[deepgram,cartesia,google,daily,runner,webrtc]"
  1. Set up your environment:
cp env.example .env
# Edit .env with your API keys
  1. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipecat_anam-0.0.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipecat_anam-0.0.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pipecat_anam-0.0.2.tar.gz.

File metadata

  • Download URL: pipecat_anam-0.0.2.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

Hashes for pipecat_anam-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0e40811bd6c515e6a766dd91dcf11c2224f039fa533c749b27c2412aeb9ad2e2
MD5 784201001affaa468a8061654dd8b943
BLAKE2b-256 cc1253e213991db0eed6f631f1c932dfb957fde45900974594ddfb30f2bc5b2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipecat_anam-0.0.2.tar.gz:

Publisher: release-stable.yml on anam-org/pipecat-anam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipecat_anam-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pipecat_anam-0.0.2-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

Hashes for pipecat_anam-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 313e7930cf17075b765cbf76ae1c0f85235c8c42fef5322e9dd406457b2bb39d
MD5 6314e65bc0e90454a8c0f410b1670efd
BLAKE2b-256 7a8e209de6f023a05556ddbb8aa5bd4523b2931b095aaab1b20df9375f41b03c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipecat_anam-0.0.2-py3-none-any.whl:

Publisher: release-stable.yml on anam-org/pipecat-anam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page