From bcc1658cd0487e12a05ce27279679eba8a259989 Mon Sep 17 00:00:00 2001 From: RhinoDevel <RhinoDevel@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:15:28 +0100 Subject: [PATCH] talk-llama : add optional Piper TTS support (#1749) Add commented-out command to optionally use Piper (https://github.com/rhasspy/piper) as text-to-speech solution for the talk-llama example. Piper voices sound almost like real people which is a big improvement (e.g.) from something like espeak. --- examples/talk-llama/speak | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/talk-llama/speak b/examples/talk-llama/speak index 40fdad2d..50e7210e 100755 --- a/examples/talk-llama/speak +++ b/examples/talk-llama/speak @@ -9,6 +9,14 @@ # #espeak -v en-us+m$1 -s 225 -p 50 -a 200 -g 5 -k 5 "$2" +# piper +# +# https://github.com/rhasspy/piper +# +# Tested with Linux: +# +#echo "$2" | piper --model ~/en_US-lessac-medium.onnx --output-raw | aplay -q -r 22050 -f S16_LE -t raw - + # for Mac say "$2"