OpenAPI v1
Text to Speech Stream with Timestamps
Changed onpost/v1/tts/stream/with-timestamp
Request
- Base URLhttps://api.fish.audio
- URLhttps://api.fish.audio/v1/tts/stream/with-timestamp
- AuthHTTP bearer
Headers
model's1' | 's2-pro' | 's2.1-pro' | 's2.1-pro-free' | 'drama-3'
Specify which TTS model to use. Use s2.1-pro-free for the free developer tier. If omitted or set to an unrecognized value, the request falls back to s2.1-pro.
Request body
Example request
{
"language": "en"
}Response
Server-Sent Events stream. Each message event contains a JSON payload with one base64 audio chunk. Concatenate every audio_base64 chunk in arrival order to reconstruct the complete audio. alignment is the latest cumulative timestamp snapshot for chunk_seq; clients should replace the previous snapshot for that chunk instead of appending segments. chunk_audio_offset_sec can be added to segment times to derive absolute timestamps in the full audio.
Changes
- info
endpoint added
- info