Skip to main content
Your agents can speak in a voice made from recordings of one real person, with that person’s consent. There are two ways to get one: An instant voice puts a voice of your own on calls today, such as an agent with an Australian accent. A professional clone takes longer. Choose it when one voice has to speak several languages, such as the mix of Hindi and English your customers use.

Instant voices

An instant voice is made from a short clip of one person speaking. You upload or record the clip, and the voice is ready in about a minute. It keeps the speaker’s accent, so a clip of an Australian speaker gives you an Australian voice.

Where instant voices work

An instant voice speaks on phone calls, campaign calls included, and on browser calls. It also works in the text-to-speech API, the streaming socket and the console’s Text to Speech playground, where it is listed under Your voices: send its id (cv_…) as voice. Text to speech costs the same in your own voice as in a built-in one. Realtime sessions use the built-in voices only. Text to speech never swaps in another voice. If your voice can’t be used for a request, for example because it was deleted, the request fails and you are not charged. On a call, an instant voice says numbers, dates and amounts the same way the built-in voices do. If it fails partway through a call, we say the interrupted sentence again in a built-in voice and keep that voice until the call ends: sameer if the voice’s gender is male, shruti otherwise.

Record a good clip

  • One speaker only. If anyone else talks, even to prompt the speaker, cut them out.
  • Record in a quiet room without echo, with no music or other voices in the background.
  • Speak the way the agent should sound on calls: conversational, at a natural pace, as if talking to a customer.
  • Record in the language the voice will speak.
  • Ten seconds is enough to start. A clip of 30 to 60 seconds keeps the speaker’s accent best.
  • Pick a speaker who already has the accent you want. The voice takes its accent from the clip, and the accent field only labels it in your list.
An instant voice copies a real person’s voice, so we only make one when that person has agreed. With every clip, you tell us:
  • the speaker’s name;
  • your relationship to them: yourself, an employee, a contractor, a customer or someone else;
  • that the speaker agreed to Mirai creating a synthetic version of their voice, which our speech providers may process.
We keep the clip, these details and the time you confirmed them as the record of the speaker’s consent. Keep your own record of their agreement as well. Instant voices don’t need the spoken consent statement that professional clones do.
Never upload a clip of a celebrity, a voice taken from another platform, or anyone who hasn’t agreed.
The speaker can withdraw consent at any time. Move your agents to another voice, then delete the voice. We delete the voice and its clip, and keep the voice’s details, without any audio, in our records for audit. A voice is personal data, so make sure your agreement with the speaker says how the voice will be used on your calls.

Make an instant voice in the console

Sign in to the console with your work email first. The page stays locked while you’re only looking around.
1

Open Custom voices

Open Custom voices in the sidebar, under Workspace. Instant voice is the first section.
2

Add the clip

Record the speaker in your browser, or upload a clip of 10 to 60 seconds.
3

Describe the voice

Give the voice a name and pick its language. The accent and the voice type (female or male) are optional. For English you can pick Australian, British, American or Indian; for other languages, type the accent. The voice type decides which built-in voice takes over if the instant voice fails on a call.
4

Confirm consent

Add the speaker’s name and your relationship to them, and tick the box to confirm that they agreed.
5

Create the voice

About a minute later the voice appears as a card. From the card you can Play sample, Rename or Delete it.
To use the voice, open an agent in Agent Studio and pick it from Your voices in the voice list.

Make an instant voice with the API

Base URL https://sandbox.voice.miraiminds.co. All endpoints require Authorization: Bearer sk_live_…, and a voice belongs to the workspace of the key that made it.

Create a voice

Send the clip and its details as multipart/form-data. The response comes back when the voice is ready, about a minute later, so give your HTTP client a timeout of 90 seconds or more.
The response is 201 Created, with the voice:

List and get voices

The response is {"object": "list", "data": [...]}, newest first. Deleted voices are left out. GET /v2/custom-voices/{id} returns one voice. A deleted voice, or one from another workspace, answers 404 not_found.

Rename a voice

PATCH takes name, gender or both, and returns the updated voice. A new gender also changes which built-in voice takes over if the instant voice fails on a call. The clip and the language can’t change; make a new voice for those.

Hear a voice

The response body is the audio itself (audio/wav, 16-bit PCM at 24 kHz). Keep --output, or curl prints the audio into your terminal. text is optional and takes up to 300 characters. Send {} instead to hear a short sentence we pick in the voice’s language. Previews have their own rate limit per workspace, so if you get 429, wait a few seconds and try again.

Use it on an agent

Set the voice’s id as the agent’s voice.voice_id:
The same ID works when you create an agent, and in call_settings.voice_id to use the voice on one call. The voice must belong to the agent’s workspace. Any other ID returns 400 invalid_request. An instant voice always speaks the language you made it with, so use it on agents that talk in that language.

Delete a voice

The response is 204 No Content, and the voice and its clip are gone. While an agent still uses the voice, you get 409 voice_in_use with a message that names the agents. Give them another voice first.

Instant voice limits

Instant voice errors

Errors use the standard envelope. A clip over 16 MB, or in a format that isn’t in the limits, is refused before we make anything, and the message says which.

Professional voice clones

A professional voice clone is a voice we build for your workspace from recordings of one real person. You upload 30 minutes to 2 hours of them talking, plus a short clip of them agreeing to it, and our team builds a voice your agents can use on calls. It’s worth it when none of the catalogue voices sounds like you:
  • Your brand already has a voice, such as the person in your ads or the support lead your customers know by name.
  • You need an accent the catalogue doesn’t have, such as Australian English.
  • You want a voice that is at home in your languages: Gujarati, Tamil, Telugu, or the Hindi and English mix your customers actually speak.
If a catalogue voice already sounds right, use it. It’s ready today, and nobody has to spend an afternoon talking to a microphone.

Who can request one, and what it costs

Any workspace can send a request, from the console or the API. In the console, sign in with your work email first; the page stays locked while you’re only looking around. A workspace can have five requests open at a time. Requests that are ready or not accepted don’t count towards that. Custom voices come with a volume commitment on our Enterprise plan. See Billing & tiers. Sending a request doesn’t charge your wallet: our team gets in touch to agree pricing with you before training starts.

Before you record

We build the voice from these recordings, so how they sound is how your agent will sound.

The speaker

  • One speaker only. Every file must be the same person. If someone else talks during a session, for example to prompt the speaker with questions, cut them out before you upload.
  • Speak the way the agent should sound on calls: conversational, at a natural pace, as if talking to a customer. A script read in a newsreader voice gets you a newsreader.
  • Use the languages, and the mix, you want the voice to speak. If the speaker talks to customers in Hinglish, record Hinglish.

The room and the microphone

  • Record in a quiet room.
  • Use the same microphone, at the same distance from the speaker, for every session.
  • Send the audio as it was recorded: no music, no voices in the background, no heavy noise reduction and no effects. Trimming silences and false starts is fine.

How much, and in what format

  • Record 30 minutes at least and 2 hours at most. We add up the length of all your recordings, and a request can’t be sent with less than 30 minutes or more than 2 hours. Trim long silences, so that the 30 minutes is the speaker talking.
  • Split long sessions into several files if you like. Each file can be up to 1 GB, with 3 GB in total.
  • WAV or FLAC at 44.1 kHz or higher is best. MP3 at 192 kbps or better is fine. We also accept M4A, AAC, MP4, OGG, Opus and WebM.
We only build a voice with the speaker’s permission, and every request carries it twice. First, whoever sends the request confirms that the speaker has agreed, in writing, to us building a voice from their recordings. You give your name and your relationship to the speaker: yourself, an employee, a contractor or someone else. Keep the written agreement where you can find it. Second, the speaker records a short consent statement in their own voice. The console shows the sentence to read and can record it in your browser, or you can upload a recording of them reading it. The sentence is:
My name is speaker’s name. I agree to Mirai creating a synthetic version of my voice for your company. Today is today’s date.
Never upload a voice from another platform, a celebrity’s voice, or the voice of anyone who hasn’t agreed. We don’t accept a request without the speaker’s consent.
The speaker can withdraw consent at any time. Delete the request, whatever its status, and we delete its recordings and its consent clip. If we’ve already built the voice, we take it down too. We keep the request’s details, without any audio, in our records for audit. A voice is personal data. Make sure your agreement with the speaker says how the voice will be used on your calls.

Request a voice in the console

1

Start a request

Open Custom voices in the sidebar, under Workspace, and click Request a voice clone.
2

Tell us about the voice

Give the voice a name of up to 60 characters; this is how it appears in your list. Add the speaker’s name and the languages the voice should speak: Hindi, English, Gujarati, Tamil or Telugu. Gender, accent (such as Australian English) and notes for our team are optional.
3

Confirm consent

Tick the consent statement, and add your name and your relationship to the speaker. Then have the speaker read the consent sentence, recorded in the browser or uploaded as a file.
4

Upload the recordings

Add the recording files. You need between 30 minutes and 2 hours in total. Until you send it, the request is a draft, so you can come back and add more later.
5

Submit

Send the request. If something is missing, the console says what, for example “Add at least 30 minutes of recordings. You have 24 minutes so far.”

What each status means

There’s no fixed turnaround. Our team reviews the recordings and updates the status as the request moves along. Anything we need you to know comes as a note on the request. When a request is ready, our team gets in touch to switch your agents to the new voice. Its voice_id is on the request so you can tell it apart from the catalogue voices.

Request a voice with the API

Base URL https://sandbox.voice.miraiminds.co. All endpoints require Authorization: Bearer sk_live_…, and a request belongs to the workspace of the key that created it.
Files are large, so they go up in chunks of 16 MiB (16,777,216 bytes): you register the file, upload its chunks, mark it complete, and submit the request when everything is in.

1. Create a request

The response is 201 Created. attested_at is the time we recorded your confirmation.

2. Register a recording

Tell us about the file before you send it. bytes must be the file’s exact size. duration_seconds is its length; for a WAV file we read the length from the file itself when you finish it, and for other formats we use the number you send. ffprobe -v error -show_entries format=duration -of csv=p=0 session-1.mp3 prints it.
kind is sample for a recording and consent for the consent clip. The response is 201 Created, and chunks says how many pieces to send:

3. Upload the chunks

Send chunk 0 to chunks - 1 as raw bytes. Every chunk is exactly chunk_bytes long except the last, which is whatever is left. Chunks can go in any order, and sending one again overwrites it.
Each PUT answers 200 with the file, and received_chunks lists the chunks we have so far.

4. Finish the file

We put the chunks together into one file. The response is the file with status complete and its sha256. For a WAV file, duration_seconds now comes from the file and duration_source is header. If any chunk is missing, you get 409 incomplete naming the missing chunks; send those and call complete again. Repeat steps 2 to 4 for each recording. The request’s sample_seconds adds up the length of every finished recording. Upload the speaker reading the consent sentence the same way, with "kind": "consent". A request holds one consent clip, up to 50 MB. To replace it, delete the old one first.
Then upload its chunks and finish it as in steps 3 and 4.

6. Submit

The response is the request with status submitted. To submit, the request needs consent.attested set to true, one finished consent clip, between 1,800 and 7,200 seconds of finished recordings, and no file still uploading. If something is missing, you get 422 not_ready with a message that says what:
422 Unprocessable Entity

Resume an upload

If an upload stops partway, get the request and look at the file in files:
received_chunks lists the chunks we already have. Send the others, then finish the file. This Python function does both, and you can run it again after any failure:

Follow the status

GET /v2/voice-clones/{id} returns the request with its status and our status_note. GET /v2/voice-clones lists every request in your workspace as {"object": "list", "data": [...]}, newest first. The status changes when our team moves the request along, so there’s no need to check often. When it is ready, voice_id names your new voice, and we’ll help you move your agents onto it.

Change or delete a request

While a request is draft or needs_changes, PATCH /v2/voice-clones/{id} changes any of the fields from step 1; at any other status it answers 409 not_editable. Adding and removing files works in those two statuses only. DELETE /v2/voice-clones/{id}/files/{file_id} answers {"id": "vcf_…", "object": "voice_clone_file", "deleted": true}. DELETE /v2/voice-clones/{id} works at any status. It deletes every recording and the consent clip, and answers:

Limits

Errors

Errors use the standard envelope.