Skip to main content
POST
Fish Audio S2 Pro Text to Speech
Fish Audio S2 Pro text-to-speech model converts text into natural speech with support for reference voices, sampling controls, chunking, audio formats, and prosody controls.

Request Headers

string
required
Supports: application/json
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

string
required
Text to convert to speech. S2-Pro multi-speaker text can use tags such as <|speaker:0|>Hello<|speaker:1|>Hi.
number
Nucleus sampling diversity control.Value range: [0, 1]
string
default:"mp3"
Output audio format.Optional values: wav, pcm, mp3, opus
string
default:"normal"
Latency profile.Optional values: low, normal, balanced
object
Prosody controls.
boolean
default:true
Normalize English and Chinese text before synthesis.
object[]
Reference audio samples for zero-shot voice cloning.
integer
default:128
MP3 bitrate in kbps.Optional values: 64, 128, 192
integer
Output sample rate in Hz. Null uses format default, 44100 Hz or 48000 Hz for opus.
number
Expressiveness control.Value range: [0, 1]
integer
default:300
Text segment size.Value range: [100, 300]
integer
Opus bitrate in bps. -1000 means automatic.Optional values: -1000, 24000, 32000, 48000, 64000
string
Voice model ID. For multi-speaker use, pass an array matching speaker indices.
integer
default:1024
Maximum audio tokens per chunk.
integer
default:50
Minimum characters before splitting text.Value range: [0, 100]
number
Penalty to reduce repeated audio patterns.
number
default:1
Early stopping threshold.Value range: [0, 1]
boolean
default:true
Use previous audio chunks as context.

Response

Generated audio. Format: binary
Last modified on July 3, 2026