Best for · AI tools

Text to speech on GitHub: six open source projects, what each one needs

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • If you want free text to speech from GitHub and a normal laptop, start with Kokoro (82 million parameters, Apache-2.0) or Piper (fast, local, runs without a big GPU).

Compared here

  • 01Piper (piper1-gpl)
  • 02Coqui TTS
  • 03Bark
  • 04Kokoro
  • 05eSpeak NG
  • 06ElevenLabs

Short answer

If you want free text to speech from GitHub and a normal laptop, start with Kokoro (82 million parameters, Apache-2.0) or Piper (fast, local, runs without a big GPU). Coqui TTS has the most models and languages. Bark makes laughs and sighs but wants about 12 GB of video memory for the full version. eSpeak NG is tiny and robotic, and the page says so itself.

Trap number one: the original rhasspy/piper repo was archived on 6 October 2025 and is read-only. Development moved to OHF-Voice/piper1-gpl, which is GPL-3.0. Money talk: the open source projects pay us nothing. ElevenLabs, the paid option at the end, has an affiliate program through us, and it sits last in this ranking on purpose.

Try ElevenLabs

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

From each project's own GitHub page, read 4 December 2026. Hardware figures are the projects' own, we did not run any of them.
ProjectLicence (as listed)Install line on the pageNotable factsBest forAffiliate?
Piper (piper1-gpl)GPL-3.0pip install piper-ttsFast, local neural TTS, embeds espeak-ng, Python and C/C++ APIsOffline voices on modest hardwareNo program
Piper (original rhasspy repo)MITNot the place to startArchived 6 Oct 2025, read-only, points to piper1-gplReading old code onlyNo program
Coqui TTSMPL-2.0pip install TTSPretrained models in 1,100+ languages, XTTS v2 covers 16Research, many languages, voice experimentsNo program
BarkMITSee READMELaughs, sighs, music tags. Full version needs around 12 GB VRAMExpressive clips if you own a GPUNo program
KokoroApache-2.0pip install kokoro>=0.9.4 soundfile (plus espeak-ng)82M parameters, 9 language codesSmall, permissive, good defaultNo program
eSpeak NGGPL-3.0 or laterPackage or build from source100+ languages and accents, a few MB, formant synthesisAccessibility, tiny devices, many languagesNo program
ElevenLabs (hosted, for contrast)Commercial serviceAPI keyHosted voices, no GPU neededWhen you want it to sound human and not host anythingYes, 22% for 12 months

Honest line before we start. We have not installed any of these. We read each project's GitHub page on 4 December 2026, we quote what is written there, and where a page is silent we say "not stated". No audio samples ranked, no speed tests, no "this one sounds 20 percent better". If you want to judge a voice, listen to samples yourself on the project pages.

Quick pick by situation

Most people who search "text to speech github" want free, and they want it offline. Good news: you can have that. Bad news: it is a bit of work, and the best option depends on what hardware you own.

  • Normal laptop, no graphics card: Kokoro or Piper.
  • Lots of languages: Coqui TTS or eSpeak NG.
  • Expressive, laughs and sighs, you own a GPU: Bark.
  • Tiny device or accessibility use: eSpeak NG.
  • You do not want to host anything: skip GitHub, use a paid service. See ElevenLabs pricing and best AI voiceover tools.

Piper: the one with the archive trap

Piper describes itself as "A fast, local neural text to speech system." The original repo, rhasspy/piper, carries an MIT licence and a banner: archived by the owner on 6 October 2025, now read-only. The page says development has moved to OHF-Voice/piper1-gpl.

The new repo is licensed GPL-3.0 and describes itself as a fast, local neural text-to-speech engine that embeds espeak-ng for phonemization. The install line it gives is:

pip install piper-tts

It offers Python and C/C++ APIs and a Java option called Piper JNI, plus Docker files. Supported operating systems are not listed as official claims on the page. It also has a "Looking for Maintainers" section. Translation: this is a live project that could use help, not a company with a support desk.

Voices are a separate story. The voices page says each voice downloads from Hugging Face as two files, a .onnx model and a .onnx.json config, and each voice has a model card with its own licence. The page warns: "Some voices may have restrictive licenses, however, so please review them carefully!" It lists around 60 languages, often with regional variants. So the code licence is not the whole story. If you are building a product, the voice licence is the one that bites.

One more quirk from the voices page: some older voices have a smaller phoneme set and can drop sounds such as nasal vowels, and "Only a retrained voice can fix this."

Coqui TTS: the big toolbox

Coqui TTS calls itself "a deep learning toolkit for Text-to-Speech, battle-tested in research and production." It is licensed MPL-2.0. The README lists pretrained models in 1,100+ languages, and says XTTS, its production model, was released with 13 languages, then XTTSv2 arrived with 16 languages and better performance.

Install for synthesis only is pip install TTS. The README says it is tested with Python 3.9 or newer and below 3.12. That version ceiling is the kind of detail that ruins an afternoon, so check your Python first. The page shows no archive notice, but it also gives no maintenance statement, so we cannot say how actively it is looked after. The README says nothing about commercial terms for XTTS. If you plan to sell audio made with it, read the model licence on the model page, not this article.

Good for: researchers, hobbyists, anyone who wants to try many models behind one interface. Less good for: someone who wants one working voice in ten minutes.

Bark: expressive, hungry

Bark's README says it is licensed under MIT and "now available for commercial use." Its party trick is non-speech sound: it can produce nonverbal communication like laughing, sighing and crying, and the README lists tags such as [laughs], [sighs], [music] and [gasps]. It also says Bark "doesn't see a difference between speech and music", which explains why it is fun and unpredictable.

Hardware is the catch. The README says the full version "requires around 12GB of VRAM to hold everything on GPU at the same time." A smaller set of models targets 8 GB, and the FAQ says cards down to about 2 GB can work with extra settings. Languages: various, auto-detected from the text, including English, German, Spanish, French, Hindi, Italian, Japanese, Korean, Polish, Portuguese, Russian, Turkish and simplified Chinese. English quality is the best, per the README.

Good for: short expressive clips and sound effects. Bad for: a long audiobook on a laptop.

Kokoro: small and permissive

Kokoro is "an open-weight TTS model with 82 million parameters." The README says the weights are Apache licensed, "so Kokoro can be deployed anywhere", which is the cleanest commercial story in this list. It supports American and British English, Spanish, French, Hindi, Italian, Japanese, Brazilian Portuguese and Mandarin Chinese. Japanese and Mandarin need extra packages.

Install, per the README:

pip install kokoro>=0.9.4 soundfile

You also need the espeak-ng system package, used as an English out-of-dictionary fallback and for some other languages. The README includes Windows espeak-ng steps, and a tip that on Apple Silicon you can set PYTORCH_ENABLE_MPS_FALLBACK=1 for GPU acceleration. Because the model is small, it is the sensible first try if you have no idea what your machine can handle.

eSpeak NG: tiny, robotic, everywhere

eSpeak NG calls itself a compact open source text-to-speech synthesizer for Linux, Windows, Android and other operating systems, with Mac in its platform table. It supports more than 100 languages and accents, the program and data total "about few Mbytes", and it is released under GPL version 3 or later.

Its own description is refreshingly honest: the speech is clear and can be used at high speeds, and it is "not as natural or smooth as larger synthesizers" built from human recordings. That is the trade. You get tiny size and huge language coverage, you lose the human sound. Kokoro even uses it under the hood as a phonemizer, so it is a quiet workhorse.

Licence cheat sheet

ProjectCode licence as listedWhat to check before commercial use
Piper (piper1-gpl)GPL-3.0Every voice's model card, and what GPL means for your code
Coqui TTSMPL-2.0The licence on each model you download
BarkMITNothing extra stated on the page, commercial use stated
KokoroApache-2.0Weights are described as Apache licensed
eSpeak NGGPL-3.0 or laterGPL terms if you bundle it

We are not lawyers, and this is not legal advice. A licence name is a pointer, not a clearance.

When GitHub is the wrong place to look

Open source TTS is great for privacy, cost control and tinkering. It is a poor fit if you need a studio voice by tomorrow, support when it breaks, or a voice clone with guard rails. Hosted services handle the hardware, the updates and the licensing. The price is a subscription, and the free tiers have caps. If you only need to read a document aloud, our free text to speech roundup is the faster route. If you need the reverse, turning recordings into words, read Python speech to text.

ElevenLabs is the hosted option we list at the end of the table, and it is the one product here that pays us if you sign up through our link. Money never changes the ranking: it sits last because most readers of this search want open source. Read the pricing page breakdown before paying for anything.

A sane way to start

  1. Check your Python version and whether you have a GPU.
  2. Try Kokoro first for a quick result, or Piper if you want a fast offline engine.
  3. Read the licence of the voice or model you use, not just the repo.
  4. Try Coqui if you need a language the others lack, Bark only if you have the video memory.
  5. Keep your first test short, one sentence, so mistakes cost seconds.

How we choose and what we do not claim is on how we pick.

Questions people ask

What is the best text to speech repo on GitHub?

There is no single best, so pick by hardware. Kokoro is a small 82 million parameter model under Apache-2.0. Piper runs locally and fast. Coqui TTS covers the most languages. Bark is the most expressive but its README says the full version needs around 12 GB of video memory. Start with Kokoro or Piper.

Is the Piper TTS repo dead?

The original rhasspy/piper repository shows as archived by its owner on 6 October 2025 and is read-only, with a pointer to OHF-Voice/piper1-gpl. The new repo is active enough to have an install line, but it lists a "Looking for Maintainers" section, so check recent commits before you build a product on it.

Can I use GitHub text to speech models commercially?

It depends on the licence of the code and of each voice. Kokoro lists Apache-2.0 and Bark says MIT, with commercial use stated. Piper voices carry their own licences, and the Piper voices page warns that some voices may have restrictive licences. Read every model card before you ship anything.

Does GitHub itself offer a text to speech service?

Not that we found on the pages we read. GitHub hosts the code, you run it yourself, on your own hardware. There is no GitHub button that turns text into audio. If you want a hosted service instead, tools such as ElevenLabs or Murf do that for a subscription.

Do I need a GPU to run open source text to speech?

Not always. eSpeak NG is only a few megabytes, and Piper calls itself a fast, local neural system. Bark is the hungry one: about 12 GB of video memory for the full version, about 8 GB for a smaller set, and the FAQ says cards down to about 2 GB can work with extra settings.

What is the difference between text to speech and speech to text on GitHub?

Text to speech reads your words aloud. Speech to text, such as OpenAI Whisper, writes down what it hears. They are separate projects with separate install lines. For the opposite direction see our Python speech to text page, which covers Whisper and faster-whisper.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Piper original repository (rhasspy/piper), archived, checked 4 Dec 2026
  2. Piper successor (OHF-Voice/piper1-gpl), checked 4 Dec 2026
  3. Piper voices guide, checked 4 Dec 2026
  4. Coqui TTS, checked 4 Dec 2026
  5. Bark (suno-ai), checked 4 Dec 2026
  6. Kokoro (hexgrad), checked 4 Dec 2026
  7. eSpeak NG, checked 4 Dec 2026