Community-maintained integration. This service is built and maintained by SpatialReal-ai. Pipecat does not test or officially support it. Please report issues and request changes on the source repository. Learn more about community integrations.
Overview
SpatialRealAvatarProcessor gives a voice bot a SpatialReal
avatar. Place it right after the TTS service: it streams the bot’s speech to SpatialReal for
facial animation, sends the animation to the browser as RTVI server messages, and releases the
audio in step with it. The avatar is rendered in the browser by the SpatialReal web SDK, so the
pipeline never carries video frames and the bot’s audio keeps playing through your transport.
Works with Pipecat’s Daily and LiveKit transports.
Source Repository
Source code, the example bot and browser page, and issues
PyPI Package
The
pipecat-spatialreal package on PyPISpatialReal Pipecat Guide
The bot, the web client and a complete example
SpatialReal Studio
Create an app, pick an avatar and get an API key
Installation
This is a community-maintained package distributed separately frompipecat-ai:
Prerequisites
SpatialReal Account Setup
- API key and app ID: create an app in SpatialReal Studio
- Avatar ID: pick an avatar and copy its ID
- Client: a web app that renders the avatar with the SpatialReal web SDK
PipelineWorker): the animation reaches the browser as RTVI server
messages.
Required Environment Variables
SPATIALREAL_API_KEY: your SpatialReal API key (server only)SPATIALREAL_APP_ID: your SpatialReal app IDSPATIALREAL_AVATAR_ID: the avatar to animate
Configuration
Constructor parameters forSpatialRealAvatarProcessor (keyword arguments):
str
required
SpatialReal API key.
str
required
SpatialReal app ID.
str
required
The avatar to animate. The browser must render the same avatar.
str
default:"us-west"
The SpatialReal deployment to use. Most users can omit this.
int
default:"200"
How far ahead of real time the audio is released to the transport.
The repository’s README lists every parameter, the browser-side setup and the
known limitations.
Usage
Pipeline
Browser
In the browser, create a SpatialReal session in Pipecat mode, hand it the bot’s audio track and every RTVI server message from yourPipecatClient. The SDK plays the bot’s voice itself, so do
not also attach the track to an <audio> element.