]> git.cworth.org Git - mnemon/blobdiff - mnemon-tts
Add a simple text-to-speech challenge type.
[mnemon] / mnemon-tts
diff --git a/mnemon-tts b/mnemon-tts
new file mode 100755 (executable)
index 0000000..d4825ce
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+arg="$@"
+
+# Strip undesired directory component
+dir=$(dirname "$arg")
+
+text="${arg#$dir/}"
+
+echo "$text" | festival --tts