summaryrefslogtreecommitdiffstats
path: root/modules/lang
diff options
context:
space:
mode:
authortv <tv@also>2010-04-26 16:34:51 +0200
committertv <tv@also>2010-04-26 16:34:51 +0200
commit3bf6c7a90c6d9141d2a5701203ba2fabe41a5c68 (patch)
tree4d70b0e10f2b3cd782c8bc47710e2bab2e680859 /modules/lang
parentdb8d3910efdaf735fa51f012fb48b52e23f25c4c (diff)
Added modules: espeak lang msg play wall zeit
Diffstat (limited to 'modules/lang')
-rwxr-xr-xmodules/lang22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/lang b/modules/lang
new file mode 100755
index 00000000..07b6802e
--- /dev/null
+++ b/modules/lang
@@ -0,0 +1,22 @@
+#! /bin/sh
+
+case "$1" in
+ (--help)
+ echo "set language or list available languages" ;;
+ (list)
+ espeak --voices | sed -n '1!p' | awk '{\
+ printf"/lang %s set lang to %s\n",$2,$4
+ }' ;;
+ ('')
+ echo /set lang >$NOISE_linefeed ;;
+ (*)
+ if test -z "$2" ; then
+ echo /set lang "$1"
+ else
+ echo /set lang "$1"
+ shift
+ echo "$*"
+ echo /set lang "${noise_lang-de}"
+ fi >$NOISE_linefeed
+esac
+