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.
POST/voices/clone
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
{
"data": {
"voice_id": "vx_7b1e44a2",
"name": "Founder voice",
"language": "en-IN",
"credits_charged": 5
}
}Illustrative examples · No live request is sent