POST
/
project
/
assets
/
generate_audio_from_text
/
curl --request POST \
  --url https://api.deepreel.com/project/assets/generate_audio_from_text/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "slate_script": [
    {
      "children": [
        {
          "text": "<string>"
        }
      ]
    }
  ],
  "voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "language_id": 123,
  "stability": 0.5,
  "style_exaggeration": 0.5
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "download_url": "<string>"
}

Authorizations

X-API-KEY
string
headerrequired

Your API key with the prefix: dr_. This is required by all endpoints to access our API programatically. You can view your API Key by navigating to the account settings panel (In the bottom left corner click on your Accountprofile)

Body

application/json
slate_script
object[]
required
voice_id
string
required

The voice to be used to generate the audio

language_id
integer
default: 94

Language used to generate the audio. Language Id for English - Default (en-us) is 94

stability
number
default: 0.5

This controls the level of variation in generated audio. Low stability will increase expressiveness of speech while high stability will lower expressiveness but increase the predictability of how the script is spoken.

style_exaggeration
number
default: 0

Level of exaggeration of the speaking style. Available only for custom voices. Higher values will make increase similarity of cloned voice but may cause the audio to be less stable.

Response

201 - application/json
id
string
required

Id of the generated audio.

download_url
string
required

URL to download the audio. Note: URL will we valid for 60 minutes only.