Skip to main content
POST
/
voice
Upload a voice sample to the voice bank
curl --request POST \
  --url https://restapi.deepdub.ai/api/v1/voice \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "age": 123,
  "data": "<string>",
  "filename": "<string>",
  "gender": "<string>",
  "locale": "<string>",
  "publish": true,
  "speaker_id": "<string>",
  "speaking_style": "<string>",
  "text": "<string>",
  "title": "<string>"
}
'
{
  "voice_prompt_id": "<string>"
}

Headers

x-api-key
string
required

API Key

Body

application/json

Voice upload request

age
integer
data
string
filename
string
gender
string
locale
string
publish
boolean
speaker_id
string
speaking_style
string
text
string
title
string

Response

model.Response with updated prompt details

voice_prompt_id
string