A fast and local neural text-to-speech engine
open sourceGPL-3.0-or-laterself-hostablefree
Piper is a fast, local neural text-to-speech engine from the Open Home Foundation that embeds espeak-ng for phonemization and runs voice models on your own hardware. It is used from the command line, a Python API, a C/C++ library (libpiper) or a small HTTP server, and its tools can train new voices. It is the local text-to-speech used by Home Assistant's voice assistant, and NVDA, Open Voice OS and LocalAI use it too. Each voice model has its own licence from its training data, and the project lists the voices whose whole training chain permits commercial use.
Problems it solves
- give my home voice assistant a natural-sounding voice without sending text to a cloud service
- turn text into speech offline on a Raspberry Pi
- have my smart home announce notifications out loud through a speaker
- a free text to speech engine I can call from Python
- read text aloud in many languages without paying per character
- embed a lightweight TTS engine in my C++ application
- run a local TTS web server other apps can send text to
- train a custom voice for my own speech synthesis
Features
- local neural text-to-speech, no cloud
- espeak-ng phonemization built in
- command-line interface
- Python API
- C/C++ API (libpiper)
- HTTP web server
- training new voices
- many downloadable voices in many languages
- streaming synthesis from libpiper
Alternatives
The same job
These do what Piper does.
- tiny-voca A 4.5M-parameter two-voice English text-to-speech model, trained from scratch
- Home Assistant Link The official Home Assistant subscription that gives you an easy, secure way to connect to your home from anywhere
- Wyoming Faster Whisper Wyoming protocol server for faster whisper speech to text system
- Speech-to-Phrase Fast and personalized local speech-to-text
- Willow Self-hosted voice assistant firmware for ESP32-S3 devices
- Linux Voice Assistant Voice satellite for Home Assistant using the ESPHome protocol
