This guide follows the Piper project's own documentation on GitHub and its listing on PyPI, both read on 26 November 2026, when the latest release of the piper-tts package was version 1.8.0.
Piper is a fast, free text-to-speech (TTS) engine that runs entirely on your own PC, so nothing you type is sent to the cloud. It's now hosted by the Open Home Foundation, the organisation behind Home Assistant, in the OHF-Voice/piper1-gpl repository; the original rhasspy/piper repository has been archived. Our guide to running text-to-speech locally covers the basics of Piper's command-line tool. This guide goes a step further and runs Piper as a small local web server, which is what the project itself recommends for repeated use.
Why use the server rather than the command line?
Piper's documentation says the command-line tool can be slow because it loads the voice model every time you run it. The web server loads the voice once and keeps it ready, so each new sentence comes back faster. It also gives you a simple page in your browser for trying voices, and an HTTP interface that scripts, home automation tools and other apps on your PC can call.
What you need
Python 3.9 or newer. PyPI lists Python 3.9 as the minimum for piper-tts 1.8.0, and it provides ready-built packages for 64-bit Windows, macOS (Intel and Apple silicon) and Linux (x86 and ARM).
A terminal, such as PowerShell or Windows Terminal on Windows.
A little storage for voice files. Each voice is two files: an .onnx model and a matching .onnx.json config file.
You don't need a graphics card. Piper runs on the CPU by default.
Piper's HTTP guide says to install the package with its server dependencies:
python3 -m pip install piper-tts[http]
The commands in Piper's documentation use python3. On Windows, use python instead if python3 isn't recognised.
Step 2: Download a voice
To see the available voices, run:
python3 -m piper.download_voices
Then download the one you want by name. Piper's documentation uses the American voice en_US-lessac-medium as its example. For a British voice, pick one of the en_GB voices from the list, such as en_GB-alba-medium:
python3 -m piper.download_voices en_GB-alba-medium
Voices download to the current folder unless you add --data-dir followed by a folder. Piper's voice list covers dozens of languages, including English (Great Britain) and Welsh, and you can hear samples on the project's samples page before you download.
Voice names end in a quality level such as low, medium or high.
Step 3: Start the server
Start the server with the voice you downloaded:
python3 -m piper.http_server -m en_GB-alba-medium
Piper's documentation says the server starts on port 5000. Use --host and --port to change that, and --data-dir if your voices are in a different folder.
Step 4: Try it in your browser
Open http://localhost:5000 in your browser. Type some text, click Speak and you'll hear the result. The page also shows information about the voice, such as its name, language and number of speakers, plus how long the last sentence took to synthesise.
Under Settings you can change the length, noise and noise W scales before speaking, and pick a speaker if the voice has more than one. Reset to voice defaults puts everything back.
Step 5: Get WAV files from other apps
The server's real value is that other programs can use it. To turn text into a WAV file, send a POST request to the /synthesize endpoint. This example uses curl:
curl -X POST -H 'Content-Type: application/json' -d '{ "text": "This is a test." }' -o test.wav localhost:5000/synthesize
On Windows, curl.exe is built in, but PowerShell handles quotes differently from the Linux-style example above, so you may need to adjust the quoting.
According to Piper's HTTP guide, the request can include these fields:
text (required): the text to speak.
voice: the voice to use, if you don't want the one you started the server with.
speaker or speaker_id: picks a speaker in a multi-speaker voice.
length_scale: the speaking speed. The default is 1.
noise_scale and noise_w_scale: control speaking variability and phoneme width variability (how much the length of each sound varies).
Anything you leave out falls back to the command-line setting, then to the voice's own defaults.
The server has a few other endpoints too. /info returns details of the current voice as JSON, including its speakers and default settings. /voices lists the voices available, and a POST request to /download with a voice name downloads a new one without stopping the server.
Useful command-line options
Piper's command-line guide lists a few options that are worth knowing:
--cuda turns on GPU acceleration, but needs the separate onnxruntime-gpu package.
--sentence-silence adds a pause, in seconds, after each sentence except the last.
--volume changes the volume (the default multiplier is 1.0), and --no-normalize turns off automatic volume normalisation.
--input-file reads text from one or more files.
You can also fix tricky pronunciations by writing the sounds out as espeak-ng phonemes inside double square brackets, such as [[ bˈætmæn ]].
Check the voice licence before commercial use
Piper's engine is licensed under GPL-3.0-or-later, but the project says it makes no licence grant of its own over voice models. Each voice comes with a MODEL_CARD file that names the licence of the recordings it was trained on, and many voices were fine-tuned from another voice, so you have to follow that chain back.
This matters most for the widely used lessac voice. Piper's licensing page says the Lessac recordings it was trained on are licensed for research use only and exclude commercial use of the speech they produce, and that many other voices were fine-tuned from it. The project says some voices were retrained in late 2026 on permissively licensed bases instead. They kept their names, so a copy downloaded before the retrain is still the old version.
Piper's commercial-use page lists voices whose whole training chain uses recordings that allow commercial use. British English examples include en_GB-alba-medium and en_GB-aru-medium, both CC BY 4.0 (which means you must credit the source). Open each voice's MODEL_CARD to check which version you have. The project stresses that its licensing pages aren't legal advice, so for a commercial project, check with a lawyer.
For personal use, such as having articles read aloud on your own PC, this is much less of a concern.
Where to go next
If you want a chatbot that speaks its replies, our guide to using text-to-speech in Ollama covers a different approach. If you're choosing between local voice engines, see our roundup of the best local text-to-speech apps. For the reverse job, turning speech into text, see how to transcribe audio locally with Whisper.