Best for · AI tools

Piper text to speech: the free local TTS engine, how to install it and what the licence means

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
  • Piper is a free, open source text to speech engine that runs on your own computer, no cloud and no account.

Compared here

  • 01Piper (OHF-Voice/piper1-gpl)
  • 02Piper voices on Hugging Face
  • 03Piper HTTP server
  • 04Home Assistant Piper add-on

Short answer

Piper is a free, open source text to speech engine that runs on your own computer, no cloud and no account. Its repo describes it as "A fast and local neural text-to-speech engine that embeds espeak-ng for phonemization." Install it with pip install piper-tts (version 1.9.0, released 3 December 2026, for Python 3.9 and up, with wheels for Windows, macOS on Intel and Apple Silicon, and Linux on x86 and ARM). Download a voice with python3 -m piper_tts.download_voices en_US-lessac-medium and speak with python3 -m piper_tts -m en_US-lessac-medium -f test.wav -- 'This is a test.'

Pick Piper if you want offline, private, fast speech for a smart home, a screen reader, a Raspberry Pi project or bulk narration on your own hardware. Skip it if you need the most human, emotional voices or voice cloning; cloud tools sound better. Two catches: the code is GPL-3.0, and the voices page says Piper "is intended for personal use and text to speech research only," with some voices carrying restrictive licences. Read each voice's MODEL_CARD before commercial use.

Piper on GitHub (official)Need cloud voices instead? Try ElevenLabs

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

At a glance

From the OHF-Voice/piper1-gpl README and docs, the piper-voices list and PyPI, read 4 December 2026. We did not benchmark voice quality or speed.
Piper
What it isLocal neural text to speech, embeds espeak-ng
PriceFree, open source
Code licenceGPL-3.0-or-later (per PyPI)
Latest version1.9.0, uploaded 3 December 2026
Python3.9 or newer
Platforms (wheels)Windows x64, macOS Intel and Apple Silicon, Linux x86_64 and aarch64
Installpip install piper-tts
VoicesHosted at huggingface.co/rhasspy/piper-voices; list covers about 58 languages
Ways to use itCommand line, Python API, HTTP server (port 5000), C/C++ library, Home Assistant
GPUOptional, --cuda with onnxruntime-gpu
Usage note"intended for personal use and text to speech research only"; check each voice's MODEL_CARD

Over a beer, the short story: Piper is the text to speech engine people reach for when they want a voice that runs on their own box, costs nothing and does not phone home. It is fast, it is small enough for a Raspberry Pi, and it powers the voice in a lot of Home Assistant setups. It will not fool anyone into thinking it is a human narrator, and its licence wording deserves five minutes of your attention before you sell anything made with it.

How we checked: we read the official repository (OHF-Voice/piper1-gpl), its CLI, Python, HTTP and Voices docs, and its PyPI record on 4 December 2026. Commands below are copied from those docs. We did not benchmark speed or rate voices, so we make no claims about how it sounds against other engines. Nobody pays us for Piper; it is free.

What Piper is

From the README: "A fast and local neural text-to-speech engine that embeds espeak-ng for phonemization." In plain words: you give it text and a voice model file, it gives you a WAV file, all on your own machine. espeak-ng handles turning letters into sounds; the neural voice model makes those sounds natural.

Some history, because you will find old links. Piper started under the rhasspy project; voice samples still live at rhasspy.github.io. The current repository is OHF-Voice/piper1-gpl under the Open Home Foundation, which says it is "looking for maintainers for Piper!" Old tutorials pointing at other repos may have outdated commands.

Install

From PyPI on 4 December 2026: version 1.9.0, uploaded 3 December 2026, requires Python 3.9 or newer, licence GPL-3.0-or-later. Wheels exist for Windows x64, macOS on Intel and Apple Silicon, and Linux x86_64 and aarch64, so a Raspberry Pi 4 or 5 on 64-bit Linux is covered.

pip install piper-tts

Use a virtual environment if you have other Python projects; it keeps things tidy.

The rename. Piper's Python docs: "The Python package is piper_tts. Before 1.9.0 it was piper." The old name clashed with an unrelated project. import piper and python3 -m piper "still work but are deprecated, and they will be removed in 2.0." If you are reading an older guide, swap piper for piper_tts in the commands.

Get a voice

List the available voices:

python3 -m piper_tts.download_voices

Download one into the current folder:

python3 -m piper_tts.download_voices en_US-lessac-medium

Voices are hosted on Hugging Face at rhasspy/piper-voices. Each needs two files: a .onnx model and a .onnx.json config. Names follow the pattern language_REGION-name-quality, as in en_US-lessac-medium. Lower quality tags like low and x_low are smaller and faster; medium is a common default. Use --data-dir to keep voices in one folder instead of wherever you happen to be.

Speak from the command line

Write to a file:

python3 -m piper_tts -m en_US-lessac-medium -f test.wav -- 'This is a test.'

Play straight to your speakers (needs ffplay from FFmpeg):

python3 -m piper_tts -m en_US-lessac-medium -- 'This will play on your speakers.'

Useful options from the CLI doc:

  • --input-file reads text from files, handy for long documents.
  • --sentence-silence adds seconds of silence between sentences.
  • --volume sets loudness, default 1.0.
  • --no-normalize turns off per-sentence volume normalising.
  • --cuda uses your GPU; it "requires the onnxruntime-gpu package."

Use it from Python

From the Python API doc:

import wave
from piper_tts import PiperVoice

voice = PiperVoice.load("/path/to/en_US-lessac-medium.onnx")
with wave.open("test.wav", "wb") as wav_file:
    voice.synthesize_wav("Welcome to the world of speech synthesis!", wav_file)

SynthesisConfig gives you the knobs:

  • length_scale: speaking speed. Above 1 is slower, below 1 faster. Usually 1.0.
  • noise_scale: variation in the voice's sound, often 0.667.
  • noise_w_scale: variation in phoneme length, which affects rhythm, often 0.8.
  • volume: multiplies the samples; above 1 can clip.
  • normalize_audio: on by default, scales each sentence to full volume first.
  • speaker_id: picks a speaker in multi-speaker voices.
  • sentence_silence: seconds between sentences, default 0.

For streaming, PiperVoice.synthesize yields one chunk per sentence without silence, so add your own gaps.

Run it as a local web service

Install the extra and start the server:

python3 -m pip install 'piper-tts[http]'
python3 -m piper_tts.http_server -m en_US-lessac-medium

It listens on port 5000 (change with --host and --port). Then:

curl -X POST -H 'Content-Type: application/json' -d '{ "text": "This is a test." }' -o test.wav localhost:5000/synthesize

The JSON accepts text, voice, speaker, speaker_id, length_scale, noise_scale, noise_w_scale and sentence_silence. There are also /info, /voices and /health endpoints. Do not expose this to the internet without something in front of it; it is a local tool.

Languages

The voices list covers about 58 languages, including Arabic, Bengali, Chinese, Czech, Danish, Dutch, English (US and Great Britain), Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Norwegian, Polish, Portuguese (Brazil and Portugal), Russian, Spanish (Argentina, Mexico and Spain), Swahili, Swedish, Thai, Turkish, Ukrainian, Urdu, Vietnamese and Welsh. Quality and voice choice vary by language: English has many voices, smaller languages may have one.

A quirk from the docs: some older voices have a smaller phoneme set and drop nasal vowels, so words like "bon" or "não" lose them. The docs name them, including fr_FR-siwis-low and pt_BR-edresson-low; other French and Portuguese voices are fine.

The licence catch

Two separate things:

  1. The code is GPL-3.0-or-later. Using Piper to make audio is one thing; shipping Piper inside a product you distribute brings GPL obligations. Check with whoever handles licences for you.
  2. The voices. From the Voices doc: "The MODEL_CARD file for each voice contains important licensing information. Piper is intended for personal use and text to speech research only; we do not impose any additional restrictions on voice models. Some voices may have restrictive licenses, however, so please review them carefully!"

So for a YouTube channel, an app or client work, open the MODEL_CARD of the exact voice you use and keep a copy. If the licence does not clearly allow your use, pick another voice or a commercial service.

Who should use Piper

  • Home Assistant users: it is listed among projects using Piper, with an official add-on.
  • Privacy-minded people: text never leaves your machine.
  • Accessibility and reading tools: fast, local, many languages.
  • Makers and Raspberry Pi projects: ARM wheels and small voice files.
  • Developers needing bulk speech offline: CLI, Python and HTTP options.

Who should not: anyone who needs emotional, studio-grade narration or voice cloning. Cloud services do that better and sell the commercial licence clearly. Our best free text to speech guide covers those, and local AI voice generators compares Piper with other offline options. For the old-school alternative, see Festival text to speech; for open engines in general, the open source voice AI engine roundup. Going the other way, speech into text on Linux, see Linux speech to text.

Questions people ask

Is Piper text to speech free?

Yes. Piper is open source and free to download from GitHub and PyPI, under GPL-3.0-or-later. It runs on your own machine with no account. The catch is not price but licence: the voices page says Piper is intended for personal use and text to speech research, and some voices have restrictive licences listed in their MODEL_CARD files.

How do I install Piper TTS?

Run pip install piper-tts on Python 3.9 or newer. Then download a voice with python3 -m piper_tts.download_voices en_US-lessac-medium, and synthesize with python3 -m piper_tts -m en_US-lessac-medium -f test.wav -- 'This is a test.' Leave out -f to play the audio directly, which needs ffplay installed.

Does Piper work offline?

Yes, that is the point of it. After you download a voice once, everything runs locally: the repo calls it a fast and local neural text to speech engine. That makes it popular for Home Assistant, offline assistants, accessibility tools and Raspberry Pi projects where you do not want text leaving the device.

What languages does Piper support?

The voices list in Piper's docs covers about 58 languages, from Afrikaans, Arabic and Bengali to Vietnamese, Welsh and Chinese, with regional variants such as English for the US and Great Britain and Spanish for Argentina, Mexico and Spain. Voice count and quality vary a lot by language.

Can I use Piper voices commercially?

Check carefully first. Piper's voices page says it is intended for personal use and text to speech research only, that it imposes no extra restrictions on voice models, but that some voices have restrictive licences. Each voice's MODEL_CARD file holds its licence. Read it, and ask a lawyer for anything you sell.

Why did python3 -m piper stop working?

The package was renamed. Piper's Python docs say the package is piper_tts, and before 1.9.0 it was piper, which clashed with an unrelated project. import piper and python3 -m piper still work but are deprecated and will be removed in 2.0. Update your scripts to piper_tts now.

Sources

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

  1. GitHub: OHF-Voice/piper1-gpl (README), checked 4 Dec 2026
  2. Piper docs: Command-line interface, checked 4 Dec 2026
  3. Piper docs: Python API, checked 4 Dec 2026
  4. Piper docs: HTTP web server, checked 4 Dec 2026
  5. Piper docs: Voices, checked 4 Dec 2026
  6. PyPI: piper-tts, checked 4 Dec 2026
  7. Hugging Face: rhasspy/piper-voices, checked 4 Dec 2026