From fda4862e7fe2d40f31dd38efaf9bca57741f36cf Mon Sep 17 00:00:00 2001 From: RhinoDevel 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 40fdad2d0bb..50e7210e333 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"