Community-maintained integration. This service is built and maintained by ChatFX. Pipecat does not test or officially support it. Please report issues and request changes on the source repository. Learn more about community integrations.
Overview
ChatFXVideoService gives your bot a real-time talking face from
ChatFX Avatar. Put it right after your TTS
service: it sends each reply’s audio to the avatar, and the avatar’s face and
voice, rendered together so the lips match, come back into your pipeline as
the bot’s own video (OutputImageRawFrame) and audio
(SpeechOutputAudioRawFrame). You keep your own STT, LLM and TTS.
Use it with any Pipecat transport that supports audio and video output. Behind
the scenes, the avatar and your bot meet in a private Daily room in your own
Daily account, created for each call and deleted when it ends (the same way
Pipecat’s Tavus service connects).
- Waiting picture: until the live face arrives (a few seconds), the bot’s video shows the avatar’s still picture.
- Face first: the bot’s first words wait up to 10 seconds for the face, so the greeting comes with it.
- Interruptions: on
InterruptionFrame, the avatar stops mid-word. - Never blocks the call: if the avatar can’t start or leaves mid-call, the bot carries on with its own TTS voice.
- Billing stops with the pipeline: ending or cancelling the pipeline ends the avatar session.
Source Repository
Source code, the foundational example, and issues
PyPI Package
The
pipecat-chatfx package on PyPIChatFX Avatar Pipecat Guide
Step-by-step setup and how the integration works
ChatFX Avatar
Choose or build an avatar and create API keys
Installation
This is a community-maintained package distributed separately frompipecat-ai:
pipecat-ai[daily]. Install the extras for your transport and AI
services separately.
Prerequisites
ChatFX Avatar Account Setup
Before using the ChatFX Avatar video service, you need:- ChatFX Avatar API key: sign up at avatar.chatfx.com and create a key under API keys
- Avatar ID: pick a ready-made avatar or build your own on the
Avatars page, and copy its ID (for example
chatfx-lois) - Daily API key: from your Daily dashboard. On Pipecat Cloud you already have one.
Required Environment Variables
CHATFX_AVATAR_API_KEY: Your ChatFX Avatar API keyDAILY_API_KEY: Your Daily API key (the private room for each call is created in your account)
Configuration
Constructor parameters forChatFXVideoService:
Daily API key used to create and delete the call’s private room. Defaults to
DAILY_API_KEY.How long to keep trying to start the avatar before the bot carries on with
its own voice.
avatar.failure holds a ChatFXException with
the API’s error code.
For the latest examples and configuration options, see the source
repository.
Usage
Basic Setup
AddChatFXVideoService after your TTS service, and turn on your transport’s
video output at the avatar’s size (912 x 512 landscape, 512 x 512 square, or
384 x 512 portrait):
Use the Daily transport for local testing and production. With SmallWebRTC,
the browser shows the avatar’s lips about a third of a second behind its
voice.
uv run bot.py -t daily).