Fish Audio API
Generates speech audio from the provided text using Fish Audio Text-to-Speech service
POST
/
tts-fishaudio
Request Body
application/json
Optionaltext
Requiredstring
Minimum length:
1
Maximum length: 150
chunk_length
integer
Chunk length to be used for the speech
Default:
200
Minimum: 100
Maximum: 300
format
string
Output audio format
Default:
"opus"
Value in: "wav" | "pcm" | "mp3" | "opus"
mp3_bitrate
number
MP3 Bitrate to be used for the speech
Default:
128
opus_bitrate
number
Opus Bitrate to be used for the speech
Default:
64
references
array<object>
References to be used for the speech, this requires MessagePack serialization, this will override reference_voices and reference_texts
voice
string
Reference ID of the reference model o be used for the speech
normalize
boolean
Whether to normalize the speech, this will reduce the latency but may reduce performance on numbers and dates
Default:
true
latency
string
Latency to be used for the speech, balanced will reduce the latency but may lead to performance degradation
Default:
"normal"
Value in: "normal" | "balanced"
token
Requiredstring
Fish Audio API key for authentication
Minimum length:
1
Audio file containing the generated speech