Skip to main content
Pipecat is an open source framework for building voice and multimodal conversational AI. It handles the orchestration of audio, AI services, and conversation pipelines so you can focus on what makes your agent unique. Fish Audio integrates with Pipecat through FishAudioTTSService, which provides real-time text-to-speech synthesis using WebSocket streaming for low-latency conversational applications.

Prerequisites

  • A Fish Audio account with an API key
  • Python 3.11 or higher (current pipecat-ai releases require it)

Installation

Install Pipecat with Fish Audio support:

Configuration

Set your Fish Audio API key as an environment variable:

Basic usage

Add FishAudioTTSService to your Pipecat pipeline:
Pipecat sends s2.1-pro unless you set model, so set it to use S3 Pro.

Key parameters

Older Pipecat examples pass reference_id, model_id and params=FishAudioTTSService.InputParams(...). These are deprecated since Pipecat 0.0.105 and will be removed in 2.0; settings replaces all three.

Prosody controls

Customize speech characteristics with Settings:

Resources