Overview
SimliVideoService integrates with Simli to create real-time AI avatar video experiences using WebRTC streaming. The service processes audio input to generate synchronized avatar video and audio output, handling real-time streaming, audio resampling, and conversation interruptions for engaging conversational AI applications.
Simli Video API Reference
Pipecat’s API methods for Simli video integration
Example Implementation
Complete example with avatar streaming
Simli Documentation
Official Simli API documentation and guides
Simli Platform
Access avatar faces and manage API keys
Installation
To use Simli services, install the required dependency:Prerequisites
Simli Account Setup
Before using Simli video services, you need:- Simli Account: Sign up at Simli Platform
- API Key: Generate an API key from your account dashboard
- Face Selection: Choose or create avatar faces for video generation
- WebRTC Setup: Configure real-time streaming capabilities
Required Environment Variables
SIMLI_API_KEY: Your Simli API key for authenticationSIMLI_FACE_ID: ID of your avatar face
Configuration
Simli API key for authentication.
Simli Face ID. For Trinity avatars, specify
"faceId/emotionId" to use a different emotion than the default.Latency interval setting for sending health checks to check the latency to Simli servers.
URL of the Simli servers. Can be changed for custom deployments by enterprise users.
Whether this is a Trinity avatar, which reduces latency when using Trinity.
Additional input parameters for session configuration. See InputParams below.
InputParams
| Parameter | Type | Default | Description |
|---|---|---|---|
enable_logging | bool | None | Whether to enable Simli logging. |
max_session_length | int | None | Absolute maximum session duration in seconds. Avatar disconnects after this time even if speaking. |
max_idle_time | int | None | Maximum duration in seconds the avatar can be idle (not speaking) before disconnecting. |
Usage
Basic Setup
With Session Configuration
Notes
- Audio resampling: The service resamples audio to 16kHz internally for the Simli API and resamples received audio back to the pipeline’s sample rate.
- Trinity avatars: When
is_trinity_avatar=True, the service usesplayImmediatefor the first audio chunk after an interruption to reduce latency. - Deprecated parameters: The
simli_configanduse_turn_serverparameters are deprecated. Useapi_keyandface_idinstead ofsimli_config.