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-aireleases require it)
Installation
Install Pipecat with Fish Audio support:Configuration
Set your Fish Audio API key as an environment variable:Basic usage
AddFishAudioTTSService to your Pipecat pipeline:
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 withSettings:

