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": 94,
"stability": 0.5,
"style_exaggeration": 0
}
'import requests
url = "https://api.deepreel.com/project/assets/generate_audio_from_text/"
payload = {
"slate_script": [{ "children": [{ "text": "<string>" }] }],
"voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language_id": 94,
"stability": 0.5,
"style_exaggeration": 0
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
slate_script: [{children: [{text: '<string>'}]}],
voice_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
language_id: 94,
stability: 0.5,
style_exaggeration: 0
})
};
fetch('https://api.deepreel.com/project/assets/generate_audio_from_text/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.deepreel.com/project/assets/generate_audio_from_text/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'slate_script' => [
[
'children' => [
[
'text' => '<string>'
]
]
]
],
'voice_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'language_id' => 94,
'stability' => 0.5,
'style_exaggeration' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.deepreel.com/project/assets/generate_audio_from_text/"
payload := strings.NewReader("{\n \"slate_script\": [\n {\n \"children\": [\n {\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"voice_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language_id\": 94,\n \"stability\": 0.5,\n \"style_exaggeration\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.deepreel.com/project/assets/generate_audio_from_text/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"slate_script\": [\n {\n \"children\": [\n {\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"voice_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language_id\": 94,\n \"stability\": 0.5,\n \"style_exaggeration\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepreel.com/project/assets/generate_audio_from_text/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"slate_script\": [\n {\n \"children\": [\n {\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"voice_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language_id\": 94,\n \"stability\": 0.5,\n \"style_exaggeration\": 0\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"download_url": "<string>"
}{
"message": "<string>",
"detail": {}
}Create an Audio
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": 94,
"stability": 0.5,
"style_exaggeration": 0
}
'import requests
url = "https://api.deepreel.com/project/assets/generate_audio_from_text/"
payload = {
"slate_script": [{ "children": [{ "text": "<string>" }] }],
"voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language_id": 94,
"stability": 0.5,
"style_exaggeration": 0
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
slate_script: [{children: [{text: '<string>'}]}],
voice_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
language_id: 94,
stability: 0.5,
style_exaggeration: 0
})
};
fetch('https://api.deepreel.com/project/assets/generate_audio_from_text/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.deepreel.com/project/assets/generate_audio_from_text/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'slate_script' => [
[
'children' => [
[
'text' => '<string>'
]
]
]
],
'voice_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'language_id' => 94,
'stability' => 0.5,
'style_exaggeration' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.deepreel.com/project/assets/generate_audio_from_text/"
payload := strings.NewReader("{\n \"slate_script\": [\n {\n \"children\": [\n {\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"voice_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language_id\": 94,\n \"stability\": 0.5,\n \"style_exaggeration\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.deepreel.com/project/assets/generate_audio_from_text/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"slate_script\": [\n {\n \"children\": [\n {\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"voice_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language_id\": 94,\n \"stability\": 0.5,\n \"style_exaggeration\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepreel.com/project/assets/generate_audio_from_text/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"slate_script\": [\n {\n \"children\": [\n {\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"voice_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"language_id\": 94,\n \"stability\": 0.5,\n \"style_exaggeration\": 0\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"download_url": "<string>"
}{
"message": "<string>",
"detail": {}
}Authorizations
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 Account → profile)
Body
Show child attributes
Show child attributes
The voice to be used to generate the audio
Language used to generate the audio. Language Id for English - Default (en-us) is 94
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.
0 <= x <= 1Level 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.
0 <= x <= 1