summaryrefslogtreecommitdiffstats
path: root/evan/evan
diff options
context:
space:
mode:
Diffstat (limited to 'evan/evan')
-rwxr-xr-xevan/evan27
1 files changed, 27 insertions, 0 deletions
diff --git a/evan/evan b/evan/evan
new file mode 100755
index 00000000..83443fe2
--- /dev/null
+++ b/evan/evan
@@ -0,0 +1,27 @@
+#!/bin/bash
+SATZ_LISTE=/root/evan/satz-liste
+p="${noise_pitch-10}"
+v="${noise_lang-de}"
+k="${noise_capital-0}"
+a="${noise_amplitude-100}"
+g="${noise_gap-1}"
+RND_DELAY=10000
+#set -x
+function helpme ()
+{
+ cat << EOF
+ $0 [-d]
+ -d -- daemonize
+ -h -- this help file
+EOF
+ exit 0
+}
+
+[ "${1:-}" = "-h" ] && helpme
+
+while true
+do
+ espeak -v $v -p $p -k $k -a $a -g $g "`shuf \"$SATZ_LISTE\" | tail -1`"
+ [ ! "${1:-}" = "-d" ] && exit 0 # break if not daemonized
+ sleep $((${RANDOM}%${RND_DELAY}))
+done