Overview
This plugin allows you to use Fish Audio as a TTS provider for your voice agents.
Installation
Install the plugin from PyPI:
uv add "livekit-agents[fishaudio]~=1.6"
Authentication
The Fish Audio plugin requires an API key from Fish Audio .
Set FISH_API_KEY in your .env.local file.
Usage
Use Fish Audio TTS within an AgentSession or as a standalone speech generator. For example, you can use this TTS in the Voice AI quickstart.
from livekit.plugins import fishaudiosession = AgentSession(tts=fishaudio.TTS(model="s2-pro",voice_id="933563129e564b19a115bedd57b7406a",),# ... llm, stt, etc.)
Voices
Fish Audio identifies each voice by a reference ID. Browse the Fish Audio playground to find a voice, or create your own custom voice model, then copy its ID into the voice_id parameter.
Parameters
This section describes some of the available parameters. See the plugin reference for a complete list of all available parameters.
modelstringDefault: s2-proFish Audio TTS model to use. Set to s1 or s2-pro.
voice_idstringID of the voice (reference ID) to use. Defaults to a built-in voice. See Voices to find or create voice IDs.
output_formatstringDefault: wavAudio output format. Set to wav, pcm, mp3, or opus.
latency_modestringDefault: balancedTradeoff between synthesis latency and quality. Set to normal, balanced, or low.
Additional resources
The following resources provide more information about using Fish Audio with LiveKit Agents.