Skip to main content
POST
/
tts
Run TTS Model
curl --request POST \
  --url https://api.vogent.ai/api/tts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>",
  "voiceId": "<string>",
  "voiceOptionValues": [
    {
      "optionId": "<string>",
      "value": "<string>"
    }
  ],
  "format": {
    "outputType": "WAV_PCM16",
    "sampleRate": 24000
  }
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

In the form Bearer <api_key_here>. You can find your api key in your dashboard.

Body

application/json
text
string
required

The text to generate.

voiceId
string
required

The voice ID to use to generate the text.

voiceOptionValues
object[]

An optional configuration for the voice being used.

format
object

The output format for the generated audio. Defaults to WAV_PCM16 at 24000 Hz.

Response

Returns a file with the audio.

The response is of type file.

I