Skip to content

Commit

Permalink
talk-llama : add optional Piper TTS support (ggerganov#1749)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RhinoDevel authored and iThalay committed Sep 23, 2024
1 parent f579b4b commit 4577f89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/talk-llama/speak
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 4577f89

Please sign in to comment.