DeepFellow DOCS

Create Speech

POST
/v1/audio/speech

Generate audio from the input text.

Authorization

headerAuthorizationBearer <token>

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?|

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Request Body

application/json
  1. body
input*string

The text to generate audio for. The maximum length is 4096 characters.

Lengthlength <= 4096
model*string

One of the available TTS models.

voice*string

The voice to use when generating the audio.

instructions?string

Control the voice of your generated audio with additional instructions.

Lengthlength <= 4096
Default""
format?string

The format to audio in. Supported formats are mp3, opus, aac, flac, wav, and pcm.

Default"mp3"
Value in"mp3""opus""aac""flac""wav""pcm"
speed?number

The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.

Range0.25 <= value <= 4
Default1
stream_format?string

The format to stream the audio in. Supported formats are sse and audio. sse is not supported for tts-1 or tts-1-hd.

Default"audio"
Value in"sse""audio"

Response Body

Successful Response

response?fileaudio/*
Formatbinary
Example Request
curl -X POST 'https://deepfellow-server-host/v1/audio/speech' \  -H 'Content-Type: application/json' \  -d '{  "input": "string",  "model": "string",  "voice": "string"}'
Example Response
"string"

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.