# HG changeset patch # User Steve Losh # Date 1560183064 14400 # Node ID 4bff92ca529786e9b18064c404ceb363765b6ad0 # Parent 4f513bcec56a9dd1725d04f9e21c20928385bd18# Parent 25592561dd6fcdfc5e8eda38bb6daac7f42d83ee Merge. diff -r 25592561dd6f -r 4bff92ca5297 bin/cmrm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/cmrm Mon Jun 10 12:11:04 2019 -0400 @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -euo pipefail + +rm ~/.ssh/controlmaster/* diff -r 25592561dd6f -r 4bff92ca5297 bin/say --- a/bin/say Sat Jun 08 12:07:30 2019 -0400 +++ b/bin/say Mon Jun 10 12:11:04 2019 -0400 @@ -1,3 +1,24 @@ #!/usr/bin/env bash -spd-say --volume -70 --pitch 40 --voice-type female3 --rate -10 "$@" +# PREREQS: +# +# sudo apt install festival festvox-us-slt-hts +# +# USAGE: +# +# echo "The tea is ready." | say +# say The tea is ready. + +set -euo pipefail + +function sayStdin () { + festival --batch \ + '(voice_cmu_us_slt_arctic_hts)' \ + '(tts "-" nil)' +} + +if [ "$#" -eq 0 ]; then + sayStdin +else + echo "$@" | sayStdin +fi