Convert Text to Audio
Available for: Chatflow, Workflow, Agent, Chatbot, Legacy Agent, Text Generator apps.
Converts text to speech audio. Pass text to synthesize arbitrary text, or message_id to voice an existing message's answer.
Request body
Response
Returns the generated audio. The Content-Type header reflects the provider's audio container, verified from the response bytes when recognizable.
The body can be AAC, FLAC, MP4, MP3, Ogg, WAV, or WebM. Output that cannot be recognized is labeled with the provider's declared type, or audio/mpeg when none is declared.
Streamed provider output is delivered with chunked transfer encoding; the request streaming field does not control this.
Changes
Changed in 1 of the 10 revisions of this API.6
- ○
added the media type
audio/aacfor the response with the status200response-media-type-added
- ○
added the media type
audio/flacfor the response with the status200response-media-type-added
- ○
added the media type
audio/mp4for the response with the status200response-media-type-added
- ○
added the media type
audio/oggfor the response with the status200response-media-type-added
- ○
added the media type
audio/wavfor the response with the status200response-media-type-added
- ○
added the media type
audio/webmfor the response with the status200response-media-type-added
- ○