Voices
Create A Custom Voice
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
headerrequiredBody
multipart/form-data
voice_name
string
requiredgender
enum<integer>
requiredAvailable options:
0
, 1
, 2
, 9
age
integer
default: 30file
file
requiredVoice reference file
Response
200 - application/json
voice_id
integer