]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
talk-llama : add optional Piper TTS support (#1749)
authorRhinoDevel <redacted>
Wed, 10 Jan 2024 14:15:28 +0000 (15:15 +0100)
committerGitHub <redacted>
Wed, 10 Jan 2024 14:15:28 +0000 (16:15 +0200)
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

index 40fdad2d0bb13bd8148404b0edd5e64005f6f1dd..50e7210e3332db54a30f3efc9e273209451d01ee 100755 (executable)
@@ -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"