Create Voice Clone
Create a voice clone using audio.
1. API endpoint
POST https://app.aistudios.com/api/odin/v3/avatars/voiceclone
2. Request parameter
key | desc | type | required | default |
---|---|---|---|---|
url | Audio URL | String | true | - |
name | Name of the voice clone | String | true | - |
gender | Gender of the voice clone | String enum (MALE, FEMALE) | true | - |
locale | Language of the sample voice for the voice clone | String enum (en, ko, zh) | false | en |
3. Response parameters
key | desc | type |
---|---|---|
voiceId | ID of the created voice clone | String |
4. Sample Request
- cURL
- Node.js
- Python
curl https://app.aistudios.com/api/odin/v3/avatars/voiceclone \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"url": "https://cdn-studio.aistudios.com/sample/tts/deepbrainai/en/M000351175.mp3",
"name": "이안",
"gender": "MALE"
}'
import axios from "axios";
const token = ${API KEY};
axios.post('https://app.aistudios.com/api/odin/v3/avatars/voiceclone',
{
"url": "https://cdn-studio.aistudios.com/sample/tts/deepbrainai/en/M000351175.mp3",
"name": "이안",
"gender": "MALE"
},
{
headers: {
'Authorization': ${token},
'Content-Type': 'application/json'
}
}
)
.then((res) => {
console.log(res.data);
})
.catch((error) => {
console.error(error);
})
import requests
import json
url = "https://app.aistudios.com/api/odin/v3/avatars/voiceclone"
body = {
"url": "https://cdn-studio.aistudios.com/sample/tts/deepbrainai/en/M000351175.mp3",
"name": "이안",
"gender": "MALE"
}
headers = {
"Content-Type": "application/json",
"Authorization": ${API TOKEN}
}
r = requests.post(url, data=json.dumps(body), headers=headers)