Free Text-to-Speech Engine

Natural speech from the Kokoro-82M model — running 100% in your browser.

Type some text, pick a voice and hit Generate Speech. On first use the AI model downloads once (then is cached for future visits) and all processing happens on your device — your text is never sent to any server.

🔒 100% private — nothing is uploaded or stored. All processing happens inside your browser using web-based AI. Your text is never sent to our servers and nothing is stored anywhere — the generated speech exists only on your device until you download it. The only download is the AI model itself (once, from Hugging Face, then cached by your browser).
0 characters

How to generate speech

  1. Write for the ear, not the page. The character counter under the box is the only limit you have, but length costs time: every extra paragraph is another pass through the model. Punctuation is what produces pauses and intonation, so punctuate properly — a run-on sentence is read as one breathless phrase.
  2. Pick a voice. The list is grouped by accent and gender: American and British, female and male. The voices differ far more in pitch, pace and warmth than in accent, so audition two or three on the same sentence before committing. This list is a static copy, replaced by the model's own once the weights finish loading; a choice the model still offers is kept.
  3. Set the speed. 1.00 is the model's natural rate. 0.85-0.95 works well for tutorials and accessibility playback; past about 1.4 the prosody starts to sound clipped, and below 0.75 the result stretches rather than slowing down naturally.
  4. Choose an engine. WASM uses the quantised model (~85 MB one-time) and runs anywhere; WebGPU uses full precision (~326 MB) and is much faster on a machine with a working GPU. Auto decides for you. The selector locks once loading starts, because the weights are cached per backend.
  5. Press Generate Speech. The first run downloads the model with a per-file progress bar; later generations in the same tab start immediately. Each result is added as its own card, newest first, so you can compare takes without losing the earlier ones.
  6. Export. Each card has a player plus a format dropdown: WAV for lossless, or MP3 with a bitrate choice that re-encodes locally without asking the model to speak again. The download button always reflects the current selection.

Getting pronunciations right

The text goes through a phonemiser before it reaches the model, and that phonemiser is an English dictionary plus rules — it does not know your product name, your surname, or the acronym your team uses. It also reads numbers and units literally, so "2026" can come out as "two zero two six".

  • Respell unknown words phonetically in the box: "Kokoro" as "koh-koh-roh", "nginx" as "engine-x". Export, then undo the respelling in your script.
  • Expand acronyms and units before generating: "API" as "A P I", "5 km" as "five kilometres", "1.5 GB" as "one point five gigabytes".
  • Add commas for breath. A comma is a short pause, a full stop is a longer one, and an ellipsis is longer still — they are the only prosody controls you have.
  • Split long jobs into paragraphs and generate them as separate clips. You get predictable results, and a mistake costs one paragraph rather than the whole file.

WAV or MP3 for speech?

Export Size per minute Quality Use it for
WAV (24 kHz mono) ~2.75 MiB Exactly what the model produced Editing, re-encoding later, anything that goes into a video timeline
MP3 320 kbps mono ~2.3 MiB Effectively transparent for speech Almost never worth the size over 192 for a single voice
MP3 192 kbps mono ~1.4 MiB Transparent for speech Voice-over you will drop into a video
MP3 128 kbps mono ~0.9 MiB Fine; slight dulling of sibilance Podcasts, phone systems, e-learning modules

The honest advice: speech is far easier to compress than music, so 128 kbps mono is genuinely enough for a spoken track, and WAV is only worth keeping if you plan to edit or re-export. What you should not do is generate at 1.00× and then time-stretch the audio to make it faster — regenerate at the speed you want, because the model produces natural prosody at each setting and a stretcher does not.

Why the synthesis runs in your browser

Kokoro-82M is downloaded once from the Hugging Face Hub and then executed by ONNX Runtime Web in a Web Worker on your machine. Your text is passed to that worker in memory and never becomes part of a network request, so an unreleased script, a confidential document or a private message can be turned into audio without leaving the laptop.

It also means no character quota, no account, and no rate limit — and, once the weights are cached, a tool that works offline. The cost is the first load: 85 MB takes about a minute on a 10 Mbps line, 326 MB closer to five. That first download is the slow one; every generation after it starts at once.

Common problems and fixes

  • Nothing happens for a minute on the first click. The model is downloading. The progress bar names each file as it lands; if it never moves, a proxy or content filter is probably blocking the Hugging Face CDN.
  • "Engine failed to start" with WebGPU. No usable GPU adapter, or a blocklisted driver. Switch to WASM and reload the page.
  • The tab crashes on a long script. The model and the audio share one process. Generate paragraph by paragraph, or on a machine with more memory; the clips can be joined afterwards with ffmpeg -f concat -i list.txt -c copy out.wav.
  • The last word is cut off. A short final sentence can fall inside the model's window. Add a full stop and a following sentence, or generate the sentence on its own.
  • The MP3 download freezes the tab. MP3 encoding happens in the page's main thread, so a long clip blocks the UI while it writes frames. It finishes; the freeze is cosmetic.
  • A player refuses the WAV. The file is 24 kHz mono, which is valid but unusual. Re-encode to 44.1 kHz stereo — the WAV to MP3 converter handles both in one pass.

Related: check intelligibility by feeding the output back into the audio transcriber, compress the result with the WAV to MP3 converter, or browse the audio tools hub. For another example of audio generated entirely in the browser, see binaural beats and isochronic tones in the browser.

Powered by the open-source Kokoro-82M model (Apache-2.0) running via Transformers.js / ONNX Runtime Web. Model weights download from the Hugging Face Hub on first use and are cached by your browser. MP3 export uses the open-source lamejs encoder (LGPL-3.0), also running entirely in your browser.


Luke Keam
Spot a bug or want a custom utility built? I'd love to hear from you. Get in touch
Luke Keam | techgeek.biz