POST
/
create_custom_voice

The file has to uploaded as a file not as a string.

Python Example

files = {'file': open('file.mp3', 'rb')}
data = {
    'voice_name': 'Voice Name',
    'gender': 1,
    'age': 30
}
response = requests.post(
    "https://client.camb.ai/apis/create_custom_voice",
    files=files,
    data=data,
    headers={
        "x-api-key": API_KEY
    }
)
print(response.json())

Authorizations

x-api-key
string
headerrequired

Body

multipart/form-data
voice_name
string
required
gender
enum<integer>
required
Available options:
0,
1,
2,
9
age
integer
default: 30
file
file
required

Voice reference file

Response

200 - application/json
voice_id
integer