curl --request PATCH \
--url https://app.dubly.ai/api/v1/dubs/{id}/audio-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"original_voice_volume_db": -15
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({original_voice_volume_db: -15})
};
fetch('https://app.dubly.ai/api/v1/dubs/{id}/audio-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/{id}/audio-settings"
payload = { "original_voice_volume_db": -15 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"original_voice_volume_db": -15,
"api_changes_remaining": 1
}
}Change the volume of the original voice
Sets how loud the original voice plays under the dubbed voice, like the audio settings on the dub page of the web app. The value is saved for the dub; if the dub has finished processing, every language is re-mixed with it right away — nothing is re-voiced and no credits are charged. While the re-mix runs, GET /api/v1/dubs/ reports “Updating” without URLs; once it is done, “Dubbed” again with URLs to the re-mixed videos. A finished lip sync is not reset by a volume change: GET /api/v1/dubs//lipsync stays “Synced”, and its video is not re-made with the new volume.
Possible only when the dub’s engine supports it and the dub was created keeping the original voice under the dubbed one (audio_settings.adjustable in GET /api/v1/dubs/); otherwise the request returns 400. A value that is not a whole number from -30 to -5 returns 400. While any language of the dub is being updated or a review is in progress, the request returns 409 and changes nothing. Sending the current value returns 200 without a re-mix and is not counted.
Every change that actually takes effect costs one of the dub’s 2 API volume changes; once they are used up, the next change returns 403 FORBIDDEN — the value and the audio stay as they are, and the volume can still be changed in the Dubly web app. A request refused with 400, 403, 404 or 409 before anything is written is not counted, and neither is one whose save fails with 500. Once the new value is saved, the change counts even if the re-mix does not finish: if another change was re-mixing a language at the same moment, the request returns 409, and if the re-mix fails, 500 — in both cases the new value stays saved and the message says so. See Edit limits.
curl --request PATCH \
--url https://app.dubly.ai/api/v1/dubs/{id}/audio-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"original_voice_volume_db": -15
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({original_voice_volume_db: -15})
};
fetch('https://app.dubly.ai/api/v1/dubs/{id}/audio-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/{id}/audio-settings"
payload = { "original_voice_volume_db": -15 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"original_voice_volume_db": -15,
"api_changes_remaining": 1
}
}
