Overview
The Pipecat Agent Human integration provides a plug-and-play transport layer for adding realistic talking avatars to your voice AI pipelines. Simply configure your avatar and API key - the plugin handles all WebSocket communication, audio formatting and session management automatically. Perfect for:- Voice AI applications
- Conversational agents
- Real-time speech synthesis
- Interactive AI assistants
Installation
Quick Start
- ✅ Session creation and management
- ✅ WebSocket connection and authentication
- ✅ Audio format conversion (to 16-bit mono PCM)
- ✅ Room configuration and avatar joining
- ✅ Error handling and reconnection
Configuration Options
Agent HumanVideoService Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Your Agent Human API key |
avatar | string | Yes | Avatar image — a publicly accessible URL (https://...) or a base64-encoded image string (data:image/...;base64,...) |
room_url | string | Yes | Daily or LiveKit room URL |
room_token | string | Yes | Room authentication token |
room_platform | string | No | Room platform: 'daily' or 'livekit' (default: 'daily') |
display_name | string | No | Avatar display name in room (default: 'AI Avatar (AH)') |
aspect_ratio | string | No | Video aspect ratio: '4:3', '3:4', '1:1' (default: '4:3') |
Complete Example
Pipeline Integration
Audio Flow
Agent HumanVideoService automatically:
- Converts audio to the required format (16-bit mono PCM)
- Sends audio via WebSocket to avatar server
- Avatar generates video and streams to your room
Event Handling
Room Setup
Using Daily.co
Using LiveKit
Best Practices
1. Session Management
2. Error Handling
3. Audio Quality
Troubleshooting
Transport Not Connecting
Cause: Invalid API key or avatar image Solution: Verify credentials in your Agent Human dashboardNo Video in Room
Cause: Room credentials incorrect or avatar hasn’t joined yet Solution:- Verify room URL and token
- Wait 2-3 seconds after connection
- Check room participant list
Audio Quality Issues
Cause: Pipeline audio format mismatch Solution: Ensure audio is properly formatted before reaching transportResources
- GitHub Repository: github.com/agenthuman/pipecat-agenthuman
- Example Projects: github.com/agenthuman/pipecat-examples
- Pipecat Docs: pipecat.ai/docs
- API Reference: Making Avatars Talk
Support
Need help with Pipecat integration?- Email: support@agenthuman.com
- Discord: discord.gg/agenthuman
- GitHub Issues: github.com/agenthuman/pipecat-agenthuman/issues