Audio
Fish Audio Text to Speech
POST
Fish Audio Text to Speech
For best results, upload reference audio using the create model before using this one. This improves speech quality and reduces latency.
-
WAV / PCM
- Sample Rate: 8kHz, 16kHz, 24kHz, 32kHz, 44.1kHz
- Default Sample Rate: 44.1kHz
- 16-bit, mono
-
MP3
- Sample Rate: 32kHz, 44.1kHz
- Default Sample Rate: 44.1kHz
- mono
- Bitrate: 64kbps, 128kbps (default), 192kbps
-
Opus
- Sample Rate: 48kHz
- Default Sample Rate: 48kHz
- mono
- Bitrate: -1000 (auto), 24kbps, 32kbps (default), 48kbps, 64kbps
Request Headers
Request Body
Controls randomness in the speech generation. Higher values (e.g., 1.0) make the output more random, while lower values (e.g., 0.1) make it more deterministic. We recommend
0.9 for s1 model.Required range: 0 <= x <= 1Controls diversity via nucleus sampling. Lower values (e.g., 0.1) make the output more focused, while higher values (e.g., 1.0) allow more diversity. We recommend
0.9 for s1 model.Required range: 0 <= x <= 1References to be used for the speech, this requires MessagePack serialization, this will override reference_voices and reference_texts.
Whether to normalize the speech, this will reduce the latency but may reduce performance on numbers and dates.
Opus Bitrate to be used for the speech.Available options:
-1000, 24, 32, 48, 64Latency to be used for the speech, balanced will reduce the latency but may lead to performance degradation.Available options:
normal, balancedResponse
The API will directly return the audio stream in the format specified by theformat parameter (default: mp3).Zuletzt geändert am 10. August 2026
Fish Audio Text to Speech