π Installing Piper TTS on Windows β Step-by-Step Guide
-
οΈ What is Piper TTS?Piper is a fast, neural text-to-speech engine that runs completely locally β no data leaves your machine. It uses espeak-ng for phonemization and works on Windows, Linux, and macOS.
It supports 40+ languages, including Brazilian Portuguese (pt_BR), with high-quality voices.
Installing on Windows1οΈβ£ Install Python 3.9+
Download the latest Python from python.org/downloads.
οΈ Important: During installation, make sure to check "Add Python to PATH".
2οΈβ£ Install Piper
Open Command Prompt or PowerShell and run:
pip install piper-tts
3οΈβ£ Download a Voice
python -m piper.download_voicesThis lists all available voices. To download a specific voice (e.g., Brazilian Portuguese):
python -m piper.download_voices pt_BR-edresson-mediumOther available voices:
Language Command
Portuguese (BR)pt_BR-edresson-medium
English (US)en_US-lessac-medium
English (UK)en_GB-alan-medium
Spanishes_ES-sharvard-medium
Frenchfr_FR-siwis-medium
Germande_DE-eva-medium-x
4οΈβ£ Test the Voice
python -m piper -m pt_BR-edresson-medium -f test.wav -- "Hello! This is a test message from Piper TTS."To hear it directly through your speakers (requires ffplay

python -m piper -m pt_BR-edresson-medium -- "Hello, world!"
5οΈβ£ Using the Python API
import wave from piper import PiperVoice, SynthesisConfig # Load the voice voice = PiperVoice.load("path/to/pt_BR-edresson-medium.onnx") # Synthesize to file with wave.open("output.wav", "wb") as wav_file: voice.synthesize_wav("Welcome to Piper TTS!", wav_file) # With custom settings syn_config = SynthesisConfig( volume=1.0, length_scale=1.2, # slower noise_scale=0.8, # less variation normalize_audio=True ) with wave.open("slower.wav", "wb") as w: voice.synthesize_wav("Speaking more slowly...", w, syn_config=syn_config)
6οΈβ£ GPU Acceleration (optional)
If you have an NVIDIA GPU with CUDA:
pip install onnxruntime-gpuThen in Python:
voice = PiperVoice.load("voice.onnx", use_cuda=True)
Final Tips- All voices at: huggingface.co/rhasspy/piper-voices
- Audio samples: rhasspy.github.io/piper-samples
- Web server:
python -m piper.http_serverβ for repeated use without reloading the model - Source code: github.com/OHF-Voice/piper1-gpl
Questions? Ask right here in the community!

-
R Rodrigo Serpa moved this topic from Getting Started on
-
R Rodrigo Serpa moved this topic from Copy & Paste on
-
R Rodrigo Serpa moved this topic from Getting Started on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login