Update a voice prompt
curl --request PUT \
--url https://restapi.deepdub.ai/api/v1/voice \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "vp_12345abcde"
}
'import requests
url = "https://restapi.deepdub.ai/api/v1/voice"
payload = { "id": "vp_12345abcde" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 'vp_12345abcde'})
};
fetch('https://restapi.deepdub.ai/api/v1/voice', 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://restapi.deepdub.ai/api/v1/voice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'vp_12345abcde'
]),
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://restapi.deepdub.ai/api/v1/voice"
payload := strings.NewReader("{\n \"id\": \"vp_12345abcde\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://restapi.deepdub.ai/api/v1/voice")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"vp_12345abcde\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://restapi.deepdub.ai/api/v1/voice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"vp_12345abcde\"\n}"
response = http.request(request)
puts response.read_body{
"prompt": {
"id": "vp_12345abcde",
"title": "Professional Narrator",
"name": "Professional Female Voice",
"locale": "en-US",
"text": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"speakerId": "<string>",
"gender": "FEMALE",
"speakingStyle": "narrative"
}
}{
"success": false,
"message": "Invalid request: voice prompt ID is required"
}{
"success": false,
"message": "Unauthorized: invalid or missing API key"
}{
"success": false,
"message": "Internal server error"
}Voice
Update a voice prompt
Update metadata for an existing voice prompt. Only non-empty fields are updated — omit fields you don’t want to change.
PUT
/
voice
Update a voice prompt
curl --request PUT \
--url https://restapi.deepdub.ai/api/v1/voice \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "vp_12345abcde"
}
'import requests
url = "https://restapi.deepdub.ai/api/v1/voice"
payload = { "id": "vp_12345abcde" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 'vp_12345abcde'})
};
fetch('https://restapi.deepdub.ai/api/v1/voice', 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://restapi.deepdub.ai/api/v1/voice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'vp_12345abcde'
]),
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://restapi.deepdub.ai/api/v1/voice"
payload := strings.NewReader("{\n \"id\": \"vp_12345abcde\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://restapi.deepdub.ai/api/v1/voice")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"vp_12345abcde\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://restapi.deepdub.ai/api/v1/voice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"vp_12345abcde\"\n}"
response = http.request(request)
puts response.read_body{
"prompt": {
"id": "vp_12345abcde",
"title": "Professional Narrator",
"name": "Professional Female Voice",
"locale": "en-US",
"text": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"speakerId": "<string>",
"gender": "FEMALE",
"speakingStyle": "narrative"
}
}{
"success": false,
"message": "Invalid request: voice prompt ID is required"
}{
"success": false,
"message": "Unauthorized: invalid or missing API key"
}{
"success": false,
"message": "Internal server error"
}Authorizations
API key for authentication. Must start with dd- prefix.
Headers
API Key
Body
application/json
Voice update request. Only non-empty fields will be updated.
Request to update a voice prompt's metadata
Unique identifier for the voice prompt to update
Example:
"vp_12345abcde"
New display name for the voice prompt
Example:
"Professional Female Voice"
Language locale code
Example:
"en-US"
Gender of the speaker
Available options:
MALE, FEMALE, NON_BINARY Example:
"FEMALE"
Age of the speaker
Example:
35
Response
Voice prompt updated successfully
A voice prompt representing a cloned or uploaded voice
Show child attributes
Show child attributes
