Clone a voice from an audio clip
POST
https://server.heyrik.com/api/v1/voices/cloneHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 4
Fields documented for this operation. See the request example for placement and structure.
clipmultipart fileRequiredAim for 20–30 seconds of clean speech from one speaker with no background noise.
namestringRequiredWhat to call the cloned voice.
languagestringPrimary language of the clip.
genderstringmale | female — for filtering only.
Response
Explore the example values. This is not a complete response schema.
dataobjectExplore 4 properties
voice_idstringExample "vx_7b1e44a2"
namestringExample "Founder voice"
languagestringExample "en-IN"
credits_chargednumberExample 5
POST/voices/clone
cURL
curl -X POST https://server.heyrik.com/api/v1/voices/clone \
-H "Authorization: Bearer $HEYRIK_API_KEY" \
-F "clip=@sample.wav" \
-F "name=Founder voice" \
-F "language=en-IN"Response example
JSON
{
"data": {
"voice_id": "vx_7b1e44a2",
"name": "Founder voice",
"language": "en-IN",
"credits_charged": 5
}
}Illustrative examples · No live request is sent
