Skip to content

VersusGPU

Kokoro vs Piper: Which Local Text-to-Speech Engine Should You Run on Your PC?

Kokoro and Piper are free text-to-speech engines that run offline on an ordinary PC. We compare their voices, languages, licences, setup and hardware needs using the projects' official documentation.

By , Senior Hardware Editor

7 min read

Kokoro vs Piper: Which Local Text-to-Speech Engine Should You Run on Your PC?

If you want your PC to read text aloud without sending it to a cloud service, two free names come up again and again: Kokoro and Piper. Both run offline, both are small enough for an ordinary desktop or laptop, and both can sit behind a local web server so other apps can use them. They're built for different jobs, though, and the licensing small print matters more than most people expect.

Everything below comes from the official Kokoro model card and voice list on Hugging Face, the Kokoro and Kokoro-FastAPI GitHub pages, and the Piper project's documentation on GitHub, all read on 26 November 2026.

The short version

Kokoro (Kokoro-82M)

Piper

What it is

An open-weight TTS model with 82 million parameters, plus a Python inference library

A local neural TTS engine with a large catalogue of separate voice models

Architecture

Based on StyleTTS 2 and ISTFTNet (decoder only, no diffusion)

Voices trained with VITS and exported to ONNX Runtime

Languages

8 languages and 54 voices in v1.0, including American and British English

More than 40 languages and regional variants listed, including British English and Welsh

Licence

Apache 2.0 weights

Engine is GPL-3.0-or-later; each voice has its own dataset licence

Install

pip install kokoro (needs espeak-ng for fallback)

pip install piper-tts

Built-in server

No (community Kokoro-FastAPI adds an OpenAI-compatible API)

Yes, piper.http_server with a web page

GPU

Optional; Kokoro-FastAPI has CPU, NVIDIA CUDA and experimental AMD ROCm images

Optional; --cuda needs the onnxruntime-gpu package

What Kokoro is

Kokoro is a single model rather than a voice catalogue. Its model card describes it as an open-weight text-to-speech model with 82 million parameters that "delivers comparable quality to larger models while being significantly faster and more cost-efficient" (that's the developer's own claim, not a Forge PC measurement). Version 1.0 was published on 27 January 2025 and was trained on a few hundred hours of audio.

The model card says Kokoro was trained only on permissive or non-copyrighted audio, such as public domain recordings, audio under licences like Apache and MIT, and synthetic audio from closed commercial TTS models. The weights are released under the Apache 2.0 licence, and the card states plainly that the model can be deployed "anywhere from production environments to personal projects".

For UK users, the useful detail is in the voice list. Kokoro has a British English mode (language code b) with eight voices: four female (bf_alice, bf_emma, bf_isabella, bf_lily) and four male (bm_daniel, bm_fable, bm_george, bm_lewis). The developer grades each voice, and the British ones are graded lower than the best American voice: bf_emma gets B-, bm_fable, bm_george and bf_isabella get C, and the rest are rated D or D+. The top-rated voice overall, af_heart, is American English with an A grade. The other supported languages are Spanish, French, Hindi, Italian, Japanese, Brazilian Portuguese and Mandarin Chinese.

What Piper is

Piper describes itself as "a fast and local neural text-to-speech engine" that embeds espeak-ng to turn text into phonemes. Instead of one model, it has a large library of voices, each made up of a .onnx model file and a matching .onnx.json config file. The project now lives at the Open Home Foundation's piper1-gpl repository, and the README says the foundation is looking for new maintainers.

Piper's voice list covers more than 40 languages and regional variants, from Arabic and Catalan to Welsh, Ukrainian and Vietnamese, with British English among them. If you need a language Kokoro doesn't support, Piper is the obvious choice.

Piper is also more "ready to run". Install it with pip install piper-tts, download a voice with python3 -m piper.download_voices, and synthesise speech from the command line. The documentation warns that the command line is slow for repeated use because it loads the voice each time, and recommends the built-in web server instead. That server (python3 -m piper.http_server -m <voice>) listens on port 5000 by default and has a browser page where you type text, click Speak and adjust settings. Our guide to running Piper as a TTS server walks through it.

Licensing: the biggest difference

This is where the two engines really part company.

Kokoro is simple: the weights are Apache 2.0, a permissive licence that allows commercial use. The model card does note that some Creative Commons Attribution audio (the Koniwa and SIWIS datasets, used for Japanese and French) was part of the training data, and lists them for attribution.

Piper is more complicated. The engine itself is GPL-3.0-or-later, but the project says it makes "no license grant of its own over voice models". Each voice ships a MODEL_CARD naming the licence of that voice's own dataset only. Because most Piper voices are fine-tuned from another voice, you have to follow the chain back to a voice trained from scratch to see every dataset involved.

That matters because the most common base, en_US-lessac-medium, was trained on the Lessac Blizzard 2013 corpus, whose licence limits use to "research and exploration of speech technologies" and excludes commercial use of the resulting speech, according to Piper's licensing page. Piper is now retraining voices from two replacement bases (a CC0 Flemish voice and a CC BY 4.0 voice from the Hi-Fi TTS dataset), and its commercial-use page lists the voices whose whole training chain allows commercial use. British English entries on that list include en_GB-alba-medium, en_GB-aru-medium, en_GB-cori-medium, en_GB-vctk-medium and en_GB-jenny_dioco-medium (which comes with naming conditions).

There's a catch: the commercial-use page says many voices were retrained in late 2026 without changing their names, so a copy downloaded before the retrain "does not qualify". Check the Training section of the MODEL_CARD next to your voice. If it still says it was fine-tuned from the lessac voice, download it again. Piper says none of this is legal advice.

For reading articles aloud on your own PC, none of this is likely to bother you. If you plan to publish narrated videos, sell an app or put a voice in a product, Kokoro's licence is far easier to live with.

Hardware and setup

Neither engine needs a powerful PC. Kokoro has 82 million parameters, which is tiny next to the language models people run locally, and Piper voices are single ONNX files.

Kokoro is a Python library. On Windows, its GitHub page says to install espeak-ng from the official releases (it's used as a fallback for words Kokoro's own phoneme library doesn't know, and for some non-English languages). If you'd rather have a server, the community Kokoro-FastAPI project packages Kokoro with an OpenAI-compatible speech API, an optional web UI and Docker images for CPU, NVIDIA GPUs (with a separate image for RTX 50-series cards) and AMD GPUs via ROCm (experimental, x86-64 only). It also lists voice mixing, SSML support and timestamped captions. Kokoro-FastAPI isn't made by Kokoro's developer, so treat it as a separate project.

Piper runs on the CPU by default. Its --cuda option enables GPU acceleration but needs the onnxruntime-gpu package. Piper also has a Python API and a C/C++ library, and tools such as Home Assistant's voice features build on it.

If you want either engine to speak replies from a chatbot, our guide to text-to-speech with Ollama shows how to connect a speech server to a local model. Our general guide to running text-to-speech locally covers other options.

Which should you choose?

Choose Kokoro if: - You mainly want English narration and are happy to pick from a smaller set of voices. - You want clear licensing for commercial work, thanks to the Apache 2.0 weights. - You're comfortable with Python, or happy to run Kokoro-FastAPI in Docker for an OpenAI-style API.

Choose Piper if: - You need a language Kokoro doesn't cover, or want lots of voices to choose from, including several British English ones. - You want a built-in web server and command-line tool with minimal setup. - You're building a home automation or accessibility setup on modest hardware, and you're willing to check each voice's licence chain.

Neither engine clones voices. If that's what you're after, see our guide to cloning a voice locally with Chatterbox, and for a wider round-up, our best local text-to-speech apps.

Our verdict

Kokoro is the better pick for most people who want natural-sounding English speech on their PC and might use the results publicly, because its Apache 2.0 weights avoid Piper's voice-by-voice licensing checks. Piper wins on languages, voice choice and out-of-the-box tools, especially its built-in web server. Listen to both projects' official samples before deciding: the developer grades Kokoro's British voices lower than its best American voice, and voice quality is a personal call.

The bottom line

Kokoro is the better pick for most people who want natural-sounding English speech on their PC and might use the results publicly, because its Apache 2.0 weights avoid Piper's voice-by-voice licensing checks. Piper wins on languages, voice choice and out-of-the-box tools, especially its built-in web server. Listen to both projects' official samples before deciding: the developer grades Kokoro's British voices lower than its best American voice, and voice quality is a personal call.

Sources

  1. 01Kokoro-82M model card, Hugging Face
  2. 02Kokoro-82M voice list (VOICES.md), Hugging Face
  3. 03kokoro inference library, GitHub
  4. 04Kokoro-FastAPI, GitHub
  5. 05Piper (piper1-gpl) README, GitHub
  6. 06Piper voice list (VOICES.md), GitHub
  7. 07Piper voice licensing (LICENSING.md), GitHub
  8. 08Piper commercial use (COMMERCIAL_USE.md), GitHub
  9. 09Piper command-line interface (CLI.md), GitHub
  10. 10Piper HTTP API (API_HTTP.md), GitHub

About the author

Callum Reid

Senior Hardware Editor

Callum leads GPU, CPU and platform architecture coverage at Forge PC. Before joining the editorial desk, he spent nine years specifying, assembling and stress-testing custom gaming and workstation systems in the UK, with a focus on PCIe bandwidth, VRM thermal design, DDR5 memory tuning and 1440p/4K frame-time consistency.

More from Callum Reid

Read next

How to Fix a Microphone That's Too Quiet in Windows 11

How-To

How to Fix a Microphone That's Too Quiet in Windows 11

If people say you're too quiet, your mic usually needs the right input selected, a higher level somewhere in the chain, better placement or gentler processing. We walk through Windows 11's input volume and test, the Levels tab and Microphone Boost, mic software gain and app settings, using Microsoft's official steps.

Marcus Thorne7 min

How to Run Local AI Models in Containers With RamaLama

How-To

How to Run Local AI Models in Containers With RamaLama

RamaLama detects your GPU, pulls a matching container image and runs local AI models inside isolated Podman or Docker containers. Here's how to install it, pull models from Hugging Face, chat and serve an API.

Marcus Thorne5 min