4f513bcec56a

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 10 Jun 2019 12:10:36 -0400
parents e6377c64c49b
children 4bff92ca5297
branches/tags (none)
files bin/cmrm bin/say

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/cmrm	Mon Jun 10 12:10:36 2019 -0400
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+rm ~/.ssh/controlmaster/*
--- a/bin/say	Wed Jun 05 11:51:29 2019 -0400
+++ b/bin/say	Mon Jun 10 12:10:36 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