Integrate a Tavus Replica into your Pipecat application as a participant or a video feed for the bot.
TavusTransport
)
TavusVideoService
)
TavusVideoService
acts as a pipeline layer, sending TTS audio to Tavus in the background. Tavus returns video and audio streams for the bot to display. No additional participant is added.replica_id
TavusTransport
TavusTransport
connects your Pipecat app to a Tavus conversation, allowing the bot to join the same virtual room as the Tavus avatar and participants. To get started, you can follow the following steps or learn more from this sample code.
TavusTransport
Step 1: Setup and Authentication
.env
file of your pipecat application (at /path/to/pipecat/.env
) add:<api_key>
with your actual API key. You can generate one in the Developer Portal.
<your_replica_id>
with the Replica ID you want to use.
Step 2: Create the Tavus transport layer
TavusTransport
by providing your bot name, Tavus API key, Replica ID, session, and additional parameters.Step 3: Insert the Tavus transport layer into the pipeline
Step 4: Run the program
<file-name>
with your actual Python filename.TavusVideoService
TavusVideoService
to enable real-time AI-driven video interactions in your Pipecat app. To get started, you can follow the following steps or refer from this sample code.
TavusVideoService
Step 1: Setup and Authentication
.env
file of your pipecat application (at /path/to/pipecat/.env
) add:<api_key>
with your actual API key. You can generate one in the Developer Portal.
<your_replica_id>
with the Replica ID you want to use.
Step 2: Create the Tavus Video Service
TavusVideoService
by providing your Tavus API key and Tavus Replica ID.Step 3: Insert the Tavus Video Service into the timeline
TavusVideoService
into the pipeline by adding the tavus
service after the TTS processor in the pipeline.Step 4: Run the program
<file-name>
with your actual Python filename.