piper
A fast, local neural text to speech system. tldr-pages
On several platforms
Several platforms
A fast, local neural text to speech system. Try out and download speech models from <https://rhasspy.github.io/piper-samples>.
Output a WAV file using a text-to-speech model (assuming a configuration file at model_path + .json)
echo Thing to say | piper -m path/to/model.onnx -f outputfile.wavIdentifyOutput a WAV file using a model and specifying its JSON config file
echo Thing to say | piper -m path/to/model.onnx -c path/to/model.onnx.json -f outputfile.wavIdentifySelect a particular speaker in a voice with multiple speakers by specifying the speaker's ID number
echo Warum? | piper -m de_DE-thorsten_emotional-medium.onnx --speaker 1 -f angry.wavIdentifyStream the output to the mpv media player
echo Hello world | piper -m en_GB-northern_english_male-medium.onnx --output-raw -f - | mpv -IdentifySpeak twice as fast, with huge gaps between sentences
echo Speaking twice the speed. With added drama! | piper -m file.onnx --length_scale 0.5 --sentence_silence 2 -f drama.wavIdentify