Skip to main content
POST
Upload voice for training

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl

Body

json

Body

application/json
key
string
required

API key to authorize the request

name
string
required

Display name assigned to the voice being uploaded

init_audio
string<uri>
required

URL of audio file to upload. MP3/WAV, 10-25 seconds for optimal results

language
enum<string>
required

Language of the voice

Available options:
english,
arabic,
spanish,
german,
czech,
brazilian portuguese,
chinese,
dutch,
french,
hindi,
hungarian,
italian,
japanese,
korean,
polish,
russian,
turkish
base64
boolean
default:false

Whether audio file is provided as base64 string

gender
enum<string>

Gender of the audio

Available options:
male,
female
thumbnail
string<uri>

Thumbnail image URL for the audio

Response

Voice upload response

status
enum<string>

Status of the voice upload

Available options:
success,
error
message
string

Response message

voice_id
string

Generated voice ID for the uploaded voice