ElevenLabs' free tier gives you about 10 minutes of audio a month, no commercial licence, and voice cloning only on paid plans. If you make videos, tutorials, or narrations, that cap runs out fast.

So I built FreeVoice: a free, unlimited, self-hosted AI voiceover studio. No account, no API key, no usage cap, and commercial use is permitted under open-source licences (MIT code, Apache 2.0 model weights).

##

What it does

  • 54 built-in voices in 8 languages (Kokoro-82M): American and British English, Spanish, French, Hindi, Italian, Japanese, Brazilian Portuguese, and Mandarin Chinese — fast enough to run on a modern CPU.
  • Voice cloning from a clean ~3-second audio sample (Qwen3-TTS 0.6B), with an optional reference transcript for higher fidelity.
  • Three ways to use it: a web studio in the browser (type text, pick a voice, preview, download the MP3, batch-export a ZIP), a CLI, and an OpenAI-compatible API (POST /v1/audio/speech ) so existing OpenAI SDK scripts work by just changingbase_url .

##

Try it

Then:

Open http://127.0.0.1:8000, type text, pick a voice, download the MP3. From the terminal:

Or call the API the same way you'd call OpenAI's speech endpoint — same JSON shape, same SDK, just pointed at your own machine.

##

Honest limitations

  • Kokoro is clear and natural for narration, tutorials, and dialogue, but it doesn't do fine-grained emotional directing (whispering, shouting, crying) like ElevenLabs' flagship models.
  • Cloning runs on CPU too, but it's noticeably slower without a GPU.
  • Cloning needs a clean 3–10 second reference clip — one speaker, no background music — and an accurate transcript for best results.
  • First run downloads the model weights from Hugging Face (~350 MB for Kokoro, ~1.2 GB for the cloning model), then they're cached locally.

The code is open source and free: https://github.com/ViraBuilds/freevoice

My portfolio (I also build $25 one-page websites for small businesses, free preview first): https://virabuilds.github.io/vira-portfolio/

原文来源:dev.to