Experimental support for gama-tts added.

This commit is contained in:
Storm Dragon 2018-07-03 22:42:45 -04:00
parent 3f8938d0d7
commit 912ab0591e
2 changed files with 9 additions and 2 deletions

View File

@ -27,7 +27,8 @@ Note that with the ogg123 command the aplay command is used for the pico voice.
-s --soundpack Set path to soundpack. Sound packs should be in ogg format and contain 1.ogg, 2.ogg, ... 11.ogg, 12.ogg and 15.ogg, 30.ogg, and 45.ogg for the quarter-hour chimes. -s --soundpack Set path to soundpack. Sound packs should be in ogg format and contain 1.ogg, 2.ogg, ... 11.ogg, 12.ogg and 15.ogg, 30.ogg, and 45.ogg for the quarter-hour chimes.
-t --torify anonymously get your current temperature, used with -z --zipcode. -t --torify anonymously get your current temperature, used with -z --zipcode.
-v --voice Select voice. Default is espeak other options are -v --voice Select voice. Default is espeak other options are
cepstral, espeak, festival, flite, flite_time googletts (requires the translate-shell package), pico, speech-dispatcher and custom. cepstral, espeak, festival, flite, flite_time, gama_tts, googletts (requires the translate-shell package), pico, sam, speech-dispatcher and custom.
If your tts files for gama_tts are somewhere other than /usr/local/share/gama_tts/data/english/ then you can specify it in your ~/.config/talking-clock/talking-clockrc. Just do gama_tts_path="/path/to/tts/vtmN where N is the number you want.
To set a custom voice enter the command as in: To set a custom voice enter the command as in:
-v 'espeak -v en-us+klatt2' -v 'espeak -v en-us+klatt2'
zipcode and flite_time are incompatable. If you have zipcode set the temperature will not be read while using flite_time. zipcode and flite_time are incompatable. If you have zipcode set the temperature will not be read while using flite_time.

View File

@ -19,7 +19,7 @@ half-hour, 4 every quarter, and anything else will delete your existing settings
-s --soundpack Set path to soundpack. Sound packs should be in ogg format and contain 1.ogg, 2.ogg, ... 11.ogg, 12.ogg and -s --soundpack Set path to soundpack. Sound packs should be in ogg format and contain 1.ogg, 2.ogg, ... 11.ogg, 12.ogg and
15, 30, and 45.oggfor the quarter-hour chimes. 15, 30, and 45.oggfor the quarter-hour chimes.
-v --voice Select voice. Default is espeak other options are -v --voice Select voice. Default is espeak other options are
cepstral, espeak, festival, pico, sam, speech-dispatcher and custom. cepstral, espeak, festival, gama_tts, pico, sam, speech-dispatcher and custom.
To set a custom voice enter the command as in: To set a custom voice enter the command as in:
-v 'espeak -v en-us+klatt2' -v 'espeak -v en-us+klatt2'
-t --torify retrieve temperature anonymously using torify, used with -z --zipcode -t --torify retrieve temperature anonymously using torify, used with -z --zipcode
@ -398,6 +398,12 @@ if [ "$speakTime" == "true" ] ; then
#For some reason flite has trouble with ##:## format. #For some reason flite has trouble with ##:## format.
echo "$timeString" | flite echo "$timeString" | flite
;; ;;
"gama_tts")
gama_tts_wav="$(mktemp --suffix gama_talking_clock.wav)"
echo "$timeString" | gama_tts tts "${gama_tts_path:-/usr/local/share/gama_tts/data/english/vtm5}" $gama_tts_wav
$soundCommand $gama_tts_wav
rm $gama_tts_wav
;;
"googletts") "googletts")
/usr/bin/trans -speak -b "$timeString" /usr/bin/trans -speak -b "$timeString"
;; ;;