Getting started with Piper TTS: choose a voice, create a WAV, and check permissions
Piper is a neural text-to-speech (TTS) engine that runs locally. Its Python CLI can turn text into a WAV file. As of November 20, 2026, the former `rhasspy/piper` repository was archived in October 2025, and development moved to [OHF-Voice/piper1-gpl](https://github.com/OHF-Voice/piper1-gpl). For a new installation, follow the successor repository’s current documentation.
Getting started with Piper TTS: choose a voice, create a WAV, and check permissions
Piper is a neural text-to-speech (TTS) engine that runs locally. Its Python CLI can turn text into a WAV file. As of November 20, 2026, the former rhasspy/piper repository was archived in October 2025, and development moved to OHF-Voice/piper1-gpl. For a new installation, follow the successor repository’s current documentation.
Generate a WAV from one sentence
The following steps use the current Piper package’s official CLI from a shell with Python and pip:
python -m pip install piper-tts
python -m piper.download_voicesThe first command installs the engine package; the second displays the voice list. Select and download a voice. For example, to download the sample voice used in the official documentation:
python -m piper.download_voices en_US-lessac-mediumSynthesize text into a voice file:
python -m piper -m en_US-lessac-medium -f sample.wav -- "Hello. This is a Piper speech synthesis example."The expected output is sample.wav in the current directory. If the command fails, check that the package is installed in the active Python environment, the voice model download completed, and—if the voice is elsewhere—--data-dir points to the right location. The CLI loads the model on each run, so for repeated requests in an application, consider the project’s web-server guidance.
Choose a voice by listening to samples
Voices can differ in tone, quality tier, and pronunciation even when they share a language code. Listen to samples and test realistic input containing dates, numbers, abbreviations, and proper names. A Piper voice usually consists of an ONNX model file and a configuration JSON. If you plan to redistribute it or bundle it with an app, preserve the voice’s MODEL_CARD; do not copy only the model file.
Check engine and voice licenses separately
The current Piper engine code is GPL-3.0-or-later. The engine license alone does not determine the rights for each voice model. Piper’s project guidance says to check the voice’s MODEL_CARD for its dataset and training lineage, and to follow the card for any base voice if the voice was fine-tuned from one. Do not assume a dataset license notice automatically grants every right to use or redistribute model weights.
In particular, the example voice en_US-lessac-medium is based on Lessac Blizzard 2013 material. The project’s licensing guidance says that material is limited to research and speech-technology exploration and does not permit commercial use. Before commercial use or model redistribution, inspect the current model card for the selected voice and its training lineage. If the license is unclear or the use is business-critical, arrange a separate rights review.
When the output is not as expected
**No sound:** First generate a WAV with `-f`, confirm the file exists, and check that a player can open WAV files.
**Model not found:** Match the downloaded voice ID to `-m`; if it is stored elsewhere, check `--data-dir`.
**Names or abbreviations sound wrong:** Adjust text normalization or pronunciation spelling, and consult Piper’s phoneme-input feature if needed.
**Long text is slow:** The CLI loads the model for each run; consider whether the server approach is better for repeated requests.
References
[OHF-Voice/piper1-gpl current repository and documentation](https://github.com/OHF-Voice/piper1-gpl)
[Piper CLI usage](https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/CLI.md)
[Piper voice list and model-card guidance](https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/VOICES.md)
[Piper voice licensing guidance](https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/LICENSING.md)
[Archived original repository and migration notice](https://github.com/rhasspy/piper)