Subspace Institute
Background Decoration

Fish Audio API

Generates speech audio from the provided text using Fish Audio Text-to-Speech service

POST
/tts-fishaudio

Request Body

application/json

text*string
Length1 <= length <= 10000
model?string

Specify which TTS model to use

Default"s1"
chunk_length?integer

Chunk length to be used for the speech

Default200
Range100 <= value <= 300
format?string

Output audio format

Default"opus"
Value in"wav" | "pcm" | "mp3" | "opus"
sample_rate?string

Sample rate for WAV/PCM format

Default"44100"
Value in"8000" | "16000" | "24000" | "32000" | "44100"
mp3_bitrate?string

MP3 bitrate in kbps

Default"128"
Value in"64" | "128" | "192"
opus_bitrate?string

Opus bitrate in kbps (-1000 for auto)

Default"64"
Value in"24" | "32" | "48" | "64" | "-1000"
references?

References to be used for the speech, this requires MessagePack serialization, this will override reference_voices and reference_texts

voice?string|null

Reference ID of the reference model to 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

Defaultfalse
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*string

Fish Audio API key for authentication

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://edge-workers.laplace.cn/laplace/tts-fishaudio" \  -H "Content-Type: application/json" \  -d '{    "text": "感谢ドラゴンラプラスWeChat的SC:一发sc没被念到我就冷汗直流心跳加速头皮发麻双手痉挛两腿打颤,还不好意思刷弹幕说你漏了,我好怕你看到了装作没看到。我的sc通常很短只有一小时,只有短短的3600秒,但它存在的时候,我会用心跳来为它倒数。私のBANを解除してください。もう二度とスパムしません😭",    "token": "string"  }'
null
{
  "success": false,
  "message": "string",
  "code": "string",
  "type": "string"
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "type": "string"
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "type": "string"
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "type": "string"
}