RhinoDevel commited on
Commit
fb92e62
·
unverified ·
1 Parent(s): 6c319ac

talk-llama : add optional Piper TTS support (#1749)

Browse files

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.

Files changed (1) hide show
  1. examples/talk-llama/speak +8 -0
examples/talk-llama/speak CHANGED
@@ -9,6 +9,14 @@
9
  #
10
  #espeak -v en-us+m$1 -s 225 -p 50 -a 200 -g 5 -k 5 "$2"
11
 
 
 
 
 
 
 
 
 
12
  # for Mac
13
  say "$2"
14
 
 
9
  #
10
  #espeak -v en-us+m$1 -s 225 -p 50 -a 200 -g 5 -k 5 "$2"
11
 
12
+ # piper
13
+ #
14
+ # https://github.com/rhasspy/piper
15
+ #
16
+ # Tested with Linux:
17
+ #
18
+ #echo "$2" | piper --model ~/en_US-lessac-medium.onnx --output-raw | aplay -q -r 22050 -f S16_LE -t raw -
19
+
20
  # for Mac
21
  say "$2"
22