Overview

Async provides high-quality text-to-speech synthesis with two service implementations: AsyncAITTSService (WebSocket-based) for real-time streaming with interruption support, and AsyncAIHttpTTSService (HTTP-based) for simpler synthesis. AsyncAITTSService is recommended for interactive applications requiring low latency.

Installation

To use Async services, install the required dependencies:
pip install "pipecat-ai[asyncai]"

Prerequisites

Async Account Setup

Before using Async TTS services, you need:
  1. Async Account: Sign up at Async
  2. API Key: Generate an API key from your account dashboard
  3. Voice Selection: Choose from available voice models

Required Environment Variables

  • ASYNCAI_API_KEY: Your Async API key for authentication