Skip to main content
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 PyPI

ChatFX 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 from pipecat-ai:
It brings 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:
  1. ChatFX Avatar API key: sign up at avatar.chatfx.com and create a key under API keys
  2. Avatar ID: pick a ready-made avatar or build your own on the Avatars page, and copy its ID (for example chatfx-lois)
  3. Daily API key: from your Daily dashboard. On Pipecat Cloud you already have one.
You’ll also need API keys for the STT, LLM and TTS services used in your pipeline.

Required Environment Variables

  • CHATFX_AVATAR_API_KEY: Your ChatFX Avatar API key
  • DAILY_API_KEY: Your Daily API key (the private room for each call is created in your account)

Configuration

Constructor parameters for ChatFXVideoService:
str
required
ID of the avatar to show, from the Avatars page.
str
default:"None"
ChatFX Avatar API key. Defaults to CHATFX_AVATAR_API_KEY.
str
default:"None"
Daily API key used to create and delete the call’s private room. Defaults to DAILY_API_KEY.
float
default:"10.0"
How long the bot’s first words wait for the live face.
float
default:"120.0"
How long to keep trying to start the avatar before the bot carries on with its own voice.
bool
default:"True"
Show the avatar’s still picture until the live face arrives.
str
default:"Video starting..."
Text on the waiting picture, in your language. None shows no text.
str
default:"https://api.chatfx.com"
ChatFX Avatar API URL. Most users can omit this.
The service has no runtime settings. If the avatar can’t start (for example a wrong key or no minutes left), 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

Add ChatFXVideoService 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):
Your client shows the bot’s video as usual: the avatar is the bot.
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.
See the foundational example in the source repository for a complete bot with Deepgram, OpenAI and Cartesia (uv run bot.py -t daily).

Compatibility

Tested with Pipecat v1.15.0 and v1.16.0 (Python 3.12). Requires Pipecat 1.8.0 or newer. Check the source repository for the latest tested version and changelog.