Ana Brainiall

Clone your voice with 10 seconds of audio

iniciante · 10 min · Por Ana Brainiall

Why 10 seconds is enough today (it wasn't 2 years ago)

Until 2023, cloning a voice required anywhere from 30 minutes to several hours of clean studio recordings, reading a specific corpus. Today, models like Kokoro TTS and XTTS v2 do the same job with just 6 to 15 seconds of reference audio, in any reasonably quiet environment.

What changed? Architecture. Modern models separate what you say (content) from how you say it (timbre, prosody, rhythm). A small encoder extracts your "vocal profile" in just a few hundred milliseconds; from there, any text can be synthesized using that profile. The synthesis model already knows how to speak Portuguese, English, or other languages — it's simply "painting" the text with your voice.

diagrama de dois caminhos — à esquerda, encoder extraindo "timbre" de 10s de áud

The Brainiall pipeline in practice

At Brainiall, we use a native voice model running on a dedicated GPU, with 54 pre-trained voices across 9 languages — including 3 neural voices in Brazilian Portuguese (pf_dora, pm_alex, pm_santa). To clone a new voice, the flow is:

1. You record 10 seconds of yourself speaking anything in Portuguese (for example, reading this paragraph)
2. The encoder extracts your "voice embedding" — a vector of 512 numbers
3. The synthesizer receives the text you want narrated + your embedding
4. You get an MP3 back in 2–4 seconds (real-time factor < 1, meaning synthesis is faster than the final audio itself)

When it sounds natural, when it still sounds robotic

Sounds great when:
- Your reference audio is clean (low background noise, no echo)
- You speak in a neutral tone, without laughter or extreme interjections
- The text to be narrated is in the same language as the sample
- Sentences are short to medium length (up to 30 words per sentence)

Still struggles when:
- You ask for very specific emotions (explosive anger, crying)
- The text contains many foreign names or rare technical jargon
- The original sample had ambient noise — the model copies the noise along with your voice
- Very long audio (>2 minutes) starts to "drift" prosodically

gráfico estilo barra horizontal mostrando 4 cenários — "frase curta limpa: 95%",

The ethical limits (important)

Cloning someone's voice without consent is a serious legal and ethical issue. At Brainiall:

Voice cloning has powerful legitimate uses: narrating books in your own voice, creating content in multiple languages while preserving your identity, and accessibility for people who have lost the ability to speak. Use it responsibly.

Try it right now

In the Brainiall chat, click the microphone in the input field, record 10 seconds of anything you'd like to say, then type a text for it to narrate. Cloning itself is free for up to 3 attempts per month. The Pro plan at $29 unlocks 100 images and 10 videos/month, plus all 54 ready-made voices — many of which already sound more natural than an amateur cloned voice.

API Integration

Beyond the chat, use the REST API to integrate into your app. Bearer token auth (get yours at app.brainiall.com).

curl -X POST https://chat.brainiall.com/api/voice/clone \
  -H "Authorization: Bearer $BRAINIALL_KEY" \
  -F "audio=@my_voice.wav" \
  -F "name=My Voice"
import requests, os
key = os.environ["BRAINIALL_KEY"]
# 1. Upload sample to clone voice
with open("my_voice.wav", "rb") as f:
    r = requests.post("https://chat.brainiall.com/api/voice/clone",
        files={"audio": f}, data={"name": "My Voice"},
        headers={"Authorization": f"Bearer {key}"})
voice_id = r.json()["voice_id"]
# 2. Synthesize any text with the cloned voice
r = requests.post("https://chat.brainiall.com/api/tts",
    json={"text": "Hello from my clone!", "voice_id": voice_id},
    headers={"Authorization": f"Bearer {key}"})
open("output.wav", "wb").write(r.content)

Enjoyed this course?

Unlock 17 Pro courses + 40+ AIs in chat + video, music and full Studio generation.

Go Pro · $5.99/mo

Cancel anytime · No commitment