What Is the Fish Audio API?
The Fish Audio API is a developer-focused voice AI platform for text-to-speech (TTS) synthesis, voice cloning, and automatic speech recognition (ASR). Built around low-latency streaming, expressive delivery controls, and multi-language support, it is designed for applications ranging from real-time voice agents and interactive characters to audiobooks, video localization, and audio transcription.
Instead of forcing developers into rigid, monotone output, Fish Audio emphasizes controllability and speed—combining sub-100ms to low-hundreds-of-milliseconds time-to-first-audio on its real-time models with emotional direction cues and access to a large library of community and custom voices.
Core Capabilities
1. Expressive Text-to-Speech (TTS)
Fish Audio offers multiple TTS models tailored to different latency, expressiveness, and cost profiles:
- Real-time & production models (
s2.1-pro,s2-pro,s2.1-pro-free): Built for low-latency streaming (advertised around ~70–100ms time-to-first-audio in favorable conditions) and everyday production workloads, with support for 80+ languages and word-level timestamps. - High-drama / emotive synthesis (
drama-3): Geared toward highly expressive, theatrical, or nuanced delivery where emotional range matters more than lowest-tier unit cost. - Direction and parameter controls: Developers can steer tone and delivery using inline emotion/direction cues as well as generation controls such as speed, volume, and output format.
2. Instant and Persistent Voice Cloning
You can generate speech using pre-existing voices from Fish Audio’s voice library or create custom voices from reference audio:
- Instant cloning: Pass reference audio directly during a synthesis request when you need quick, one-off, or dynamic per-request voice matching without managing a saved voice model.
- Persistent custom voices: Upload clean audio clips (and optional matching transcripts) to create a reusable voice model and obtain a
voice_id(reference_id), which you can keep private, unlisted, or publish. Built-in audio enhancement can also help clean up noisy input samples before creating a voice.
3. Speech-to-Text (ASR)
Fish Audio also provides speech recognition models such as transcribe-1, transcribe-1-pro, and real-time streaming transcription (transcribe-stream-1). The pro transcription path is designed for longer recordings, multi-speaker conversations with speaker markers/turns, and inline emotion cues.
Quick Integration Example
Getting started typically involves installing the official SDK, setting FISH_API_KEY, and calling the TTS conversion endpoint:
from fishaudio import FishAudio
from fishaudio.utils import save
client = FishAudio() # Reads FISH_API_KEY from the environment
audio = client.tts.convert(
text="Welcome to the broadcast—let's dive into today's story.",
model="s2.1-pro",
reference_id="YOUR_VOICE_ID", # Optional: omit or pass a library/cloned voice ID
)
save(audio, "output.mp3")
For REST integrations, requests hit Fish Audio’s v1 API endpoints using Authorization: Bearer $FISH_API_KEY and return audio streams or files directly.
Pricing, Billing Quirks, and Operational Trade-offs
Understanding how Fish Audio meters usage helps prevent surprises as traffic grows:
- UTF-8 byte metering on TTS: Standard pay-as-you-go TTS models like
s2.1-proands2-proare billed per 1 million UTF-8 bytes (commonly around $15 / 1M UTF-8 bytes, roughly ~180,000 English words, while higher-tier emotive models likedrama-3carry a higher list rate). Because billing is based on UTF-8 bytes rather than character count, non-Latin scripts—such as Chinese, Korean, or Arabic—often occupy more bytes per character than ASCII English text, increasing effective cost per character. - Separate ASR pricing: Speech-to-text is metered separately per audio/session hour (around $0.36 / hour on standard/pro transcription models).
- Concurrency limits: Out of the box, concurrent request limits can be tight (for example, 5 simultaneous requests before unlocking higher concurrency at prepaid balance thresholds). Real-time voice agents or traffic spikes should queue requests, stream carefully, or plan around concurrency tiers so requests do not time out or fail under load.
Where It Fits Best—and When to Look Elsewhere
| Use Case | Fit | Why |
|---|---|---|
| Interactive voice agents & assistants | Strong | Low time-to-first-audio, streaming support, and expressive tone control make turn-taking feel natural. |
| Games, animation & character dialogue | Strong | Voice cloning plus expressive/dramatic models helps characters sound distinct and reactive. |
| Multilingual content & dubbing | Good | Broad language support and reusable voice IDs simplify cross-language consistency—just model UTF-8 byte costs for non-English scripts. |
| Strict compliance / regulated enterprise | Evaluate carefully | Check data retention, security/compliance requirements, and dedicated/VPC deployment options if handling sensitive data. |
Practical Tips for Shipping With It
- Curate clean reference audio: Single-speaker clips without background music or heavy reverb produce much more reliable clones. Including accurate transcripts alongside samples can further sharpen pronunciation.
- Test short and long utterances: Verify how a voice handles both crisp single-sentence replies and longer multi-sentence passages before locking it into production.
- Benchmark in your target language and peak load: Measure real-world latency, UTF-8 byte consumption on actual scripts, and behavior under concurrent requests rather than relying solely on synthetic single-call tests.
Leave a Reply