Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Better text to speech with piper
- # https://github.com/rhasspy/piper
- # get piper
- wget "https://github.com/rhasspy/piper/releases/download/v1.2.0/piper_amd64.tar.gz"
- tar xzvf piper_amd64.tar.gz
- cd piper
- # get voice models
- # https://github.com/rhasspy/piper/blob/master/VOICES.md
- wget "https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_GB/alan/medium/en_GB-alan-medium.onnx"
- wget "https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_GB/alan/medium/en_GB-alan-medium.onnx.json"
- # Play the audio from text
- echo 'This sentence is spoken first. This sentence is synthesized while the first sentence is spoken.' | ./piper --model en_GB-alan-medium.onnx --output-raw | aplay -r 24000 -f S16_LE -t raw -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement