Piper is a fast, local neural text-to-speech system: it runs on your machine, needs no network once the voice is downloaded, and is even optimised for a Raspberry Pi 4. The first step is the binary and one voice.
Get the binary and a voice, then speak
Download a Piper binary release for your platform from the project’s releases, and download a voice — each voice is two files, a .onnx model and its .onnx.json config, which must sit together. Then speak: echo 'Welcome to the world of speech synthesis!' | piper --model en_US-lessac-medium --output_file welcome.wav. The voice name picks the model file; the config file next to it carries the voice’s settings.
echo 'Welcome to the world of speech synthesis!' | \
piper --model en_US-lessac-medium --output_file welcome.wav
Piper voices cover many languages — English (US and GB), German, French, Spanish, Italian, Dutch, Polish, Russian, Ukrainian, Chinese, Vietnamese and more — and each voice’s MODEL_CARD carries its licence information, some of which is restrictive. Check the licence before you publish audio made with a voice.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Binary runs | piper –help prints usage | Check the release for your platform |
| Voice files present | The .onnx and .onnx.json are together | Both files are needed |
| WAV written | welcome.wav is created | Check the output path |
| Audio plays | The WAV speaks the sentence | Play it back |
Expected result. We checked the Piper README, which gives the example command with en_US-lessac-medium, says voices need a .onnx file and its .onnx.json, lists the languages, and notes the MODEL_CARD licence per voice. We did not install Piper on this machine.
Limits
This guide covers the binary install and first voice only. Voice licences vary and some are restrictive. We did not test any install ourselves.
