Added rhvoice as option, removed pico because it sounds stupid and has a stupid license/is more trouble than it's worth.

This commit is contained in:
Storm Dragon
2019-09-19 09:48:24 -04:00
parent caa3b55ade
commit 0a7fffb60b
2 changed files with 7 additions and 12 deletions

View File

@ -20,9 +20,10 @@ 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
15, 30, and 45.oggfor the quarter-hour chimes.
-v --voice Select voice. Default is espeak other options are
cepstral, espeak, festival, gama_tts, pico, sam, speech-dispatcher and custom.
cepstral, espeak, festival, gama_tts, rhvoice-(voicename), sam, speech-dispatcher and custom.
To set a custom voice enter the command as in:
-v 'espeak -v en-us+klatt2'
rhvoice is a special case, you must include the name of the voice you want as in rhvoice-bdl
-z --zipcode postal code Used for current temperature, may not be available inn all areas.
For complete information read the README located at /usr/share/talking-clock/README"
EOF
@ -413,14 +414,8 @@ if [ "$speakTime" == "true" ] ; then
"speech-dispatcher")
spd-say -w -P important "$timeString"
;;
"pico")
pico2wave -w $voiceFile "$timeString"
#ogg123 doesn't do wav, so hopefully everyone has aplay...
if [[ "$soundCommand" == "ogg123" || "$soundCommand" == "ogg123 -q" ]] ; then
aplay -q $voiceFile
else
$soundCommand $voiceFile
fi
"rhvoice-"*)
echo "$timeString" | RHVoice-test -p "${voice##*-}"
;;
*)
$voice "$timeString"