The Piper binary is one route; the Python package is the other. pip install piper-tts installs Piper as a Python tool, and it downloads the voice automatically the first time you use it — no manual voice download needed.
Install with pip and speak
Run pip install piper-tts, then use the piper command as usual: the first time you name a voice, Piper downloads the voice files for you. The same command works: echo 'Welcome to the world of speech synthesis!' | piper --model en_US-lessac-medium --output_file welcome.wav. The auto-download happens once per voice; after that, the files are local and the synthesis is fully offline.
pip install piper-tts
echo 'Welcome to the world of speech synthesis!' | \
piper --model en_US-lessac-medium --output_file welcome.wav
The auto-download needs network access the first time, and the voice files land in Piper’s voice directory — check where they went if you later want to copy them to another machine. For GPU use, add --cuda, which needs the onnxruntime-gpu package instead of the CPU one.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Installed | pip install piper-tts succeeds | Check Python and pip |
| Voice downloads | The first use fetches the voice | Network needed once |
| WAV written | welcome.wav is created | Check the output path |
| Offline after | A second run needs no network | Voice files are local |
Expected result. We checked the Piper README, which documents pip install piper-tts, the auto-download of voices on first use, the example command, and the –cuda option needing onnxruntime-gpu. We did not install Piper on this machine.
Limits
This guide covers the pip install only. The first voice download needs network access. We did not test any install ourselves.
