Platform
Custom voices
A custom voice is a copy of a real person's voice, made from a short recording, that your agents and text-to-speech can speak with. You get a voice id that starts with cv_ and use it anywhere you would use a built-in voice.
Consent comes first
- Only make a voice you have the right to use. The speaker must agree to it.
- The speaker reads a consent sentence aloud. It names them, your organisation and today's date, for example “I, Priya Sharma, agree that Acme Retail may create and use an AI copy of my voice. Today is 17 November 2026.”
- The sentence is read in English. The consent recording is transcribed and must match the sentence closely (at least 75% of the words). If it does not, the voice is not made and you are told why.
- In the portal, the consent sentence is recorded live in the same visit as the voice sample. It cannot be uploaded there.
- The voice is private to your organisation. Nobody outside it can see or use it.
- The sample and the consent recording are stored encrypted for as long as the voice exists.
- Making a voice needs a completed KYC (yours or your organisation owner's) and the owner, admin or developer role. Making, using and deleting a voice is recorded in the Activity log.
Terms of use
Whoever makes a voice accepts the custom voice terms each time; the version accepted is kept with the voice. In short, you confirm that:
- the speaker gave clear, informed permission for your organisation to make and use an AI copy of their voice;
- the speaker read the consent sentence themselves;
- you will not use the voice to impersonate anyone, to mislead people about who is speaking, or for anything unlawful;
- callers are told they are speaking with an automated assistant;
- you will delete the voice when the speaker withdraws permission.
The full, current text is shown in the portal before you create a voice, and at GET /v1/voices/terms, which answers {"version", "text"}.
curl https://api.inferexai.in/v1/voices/terms \
-H "Authorization: Bearer sk-live-your-key-here"
Make one in the portal
- Open Build → Voices and choose New voice.
- Give the voice a name, type the speaker's full name and pick the language they will speak.
- Record 10 to 30 seconds of the speaker talking naturally, in a quiet room, close to the microphone. You can play it back and record again. You can also choose an audio file of 5 to 60 seconds instead.
- The consent sentence appears in large text. Record the speaker reading it, then accept the terms.
- Choose Create voice. The recordings are sent and checked, and the voice is usually ready within seconds.
The browser asks for permission to use the microphone the first time. Allow it in the address bar if you said no by mistake.
Make one through the API
First fetch the sentence the speaker must read, with their name:
curl "https://api.inferexai.in/v1/voices/consent-text?speaker_name=Priya%20Sharma" \
-H "Authorization: Bearer sk-live-your-key-here"
Then send both recordings in one multipart request:
curl -X POST https://api.inferexai.in/v1/voices \
-H "Authorization: Bearer sk-live-your-key-here" \
-F name="Priya, support" \
-F speaker_name="Priya Sharma" \
-F language=hi-IN \
-F accept_terms=true \
-F sample=@sample.wav \
-F consent=@consent.wav
nameWhat your team sees.
speaker_nameThe speaker’s full name, as in the consent sentence.
languageThe language of the recordings, such as hi-IN. en-IN if left out.
sampleThe speaker talking: a PCM WAV file of 5 to 60 seconds, at most 12 MB.
consentThe speaker reading the consent sentence: a PCM WAV file of 2 to 30 seconds, at most 6 MB.
accept_termstrue: you accept the custom voice terms. Required.
The answer is the voice:
{
"id": "cv_4f2a9c1b7d5e6a7b8c9d",
"name": "Priya, support",
"speaker_name": "Priya Sharma",
"languages": ["hi-IN"],
"status": "ready",
"error": null,
"model": "vani-clone",
"monthly_fee_inr": "199",
"created_at": "2026-11-17T10:30:00+00:00"
}
status is ready when the voice can be used. If it could not be made from the sample, the answer is a 502 error that carries the voice with status: "failed" and the reason in error; delete it and try a clearer recording. Other refusals come back as an error with a plain message, for example a consent recording that does not match the sentence (400), terms not accepted (400), KYC not completed (403), an empty wallet (402) or the voice limit reached (409).
Use it on an agent
In the portal, open the agent and pick the voice under Voice; custom voices are listed under “Custom”. Through the API, set voice to the voice id:
curl -X PATCH https://api.inferexai.in/v1/voice-agents/va_3f2a9c1b7d5e4f608a12 \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{"voice": "cv_4f2a9c1b7d5e6a7b8c9d"}'
The agent then speaks on calls with the custom voice instead of its model combination's voice. An agent can only use voices of its own organisation. If the voice is later deleted, calls go back to the combination's default voice.
Use it in speech
Send the voice id as voice to text-to-speech. Use the model vani-clone, or any speech model: a cv_ voice always speaks with vani-clone, and that is the model on your usage lines.
curl https://api.inferexai.in/v1/audio/speech \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{"model": "vani-clone", "voice": "cv_4f2a9c1b7d5e6a7b8c9d", "input": "Namaste! Aapka order kal tak pahunch jayega."}' \
--output reply.wav
The answer is a WAV file, whatever container format you ask for; pcm and mulaw work as with other voices. Streaming (stream_format: "sse") is not available for custom voices through this endpoint; on calls, agents stream custom voices sentence by sentence as usual.
You can also try it in the portal: Quick test → Text-to-Speech, voice “Custom · your voice”.
Limits and price
Voices20 per organisation by default. Ask support for more.
Text per requestUp to 20,000 characters. Text is spoken in pieces of up to 1,000 characters, split at sentence ends and joined into one file for you.
RecordingsSample 5 to 60 seconds (10 to 30 seconds of clear speech of one person works best); consent 2 to 30 seconds.
Monthly fee₹199 a month for each stored voice, charged when the voice is ready and then monthly. Deleting the voice stops the fee. GET /v1/voices and each voice carry monthly_fee_inr.
SpeechCharged per character under vani-clone, at the price on your Rate card.
Deleting a voice
Delete a voice in Build → Voices, or with DELETE /v1/voices/{id}. The voice stops working at once, its sample and consent recording are deleted, and the monthly fee stops. Agents that used it speak with their combination's default voice.
Endpoints
GET /v1/voices/consent-text?speaker_name=The sentence the speaker reads
GET /v1/voices/termsThe custom voice terms: version and text
POST /v1/voicesMake a voice (multipart, fields above)
GET /v1/voicesYour organisation’s custom voices in data, with monthly_fee_inr and limit
GET /v1/voices/{id}One voice
DELETE /v1/voices/{id}Delete a voice and its recordings
Keys need the voices scope. Every role can list voices; owners, admins and developers can fetch the consent sentence, make and delete them. If custom voices are not turned on for your account, these endpoints answer 404; contact support to request access.