Overview
PlayHT provides high-quality text-to-speech synthesis with two service implementations:PlayHTTTSService
(WebSocket-based) for real-time streaming with ultra-low latency, and PlayHTHttpTTSService
(HTTP-based) for simpler synthesis. PlayHTTTSService
is recommended for interactive applications requiring low latency and advanced interruption handling.
PlayHT TTS API Reference
Pipecat’s API methods for PlayHT TTS integration
Example Implementation
Complete example with voice cloning
PlayHT Documentation
Official PlayHT WebSocket API documentation
Voice Cloning
Create and manage custom voices
Installation
To use PlayHT services, install the required dependencies:Prerequisites
PlayHT Account Setup
Before using PlayHT TTS services, you need:- PlayHT Account: Sign up at PlayHT Dashboard
- API Credentials: Get your User ID and API Key from the dashboard
- Voice Selection: Choose from standard voices or create custom cloned voices
Required Environment Variables
PLAY_HT_USER_ID
: Your PlayHT user IDPLAY_HT_API_KEY
: Your PlayHT API key for authentication