summaryrefslogtreecommitdiffstats
path: root/.graveyard/noise/modules/lang
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-12-09 20:07:19 +0100
committertv <tv@nomic.retiolum>2013-12-09 20:07:19 +0100
commitf4f5b3b7aff2ac45ee035f54d6e8899ff963d133 (patch)
tree415410184165bbeaa7ed0cb54b7b915a856e909b /.graveyard/noise/modules/lang
parent5788b95fe7834d3049df9de1009f3d8dbc34fea2 (diff)
noise: RIP
Diffstat (limited to '.graveyard/noise/modules/lang')
-rwxr-xr-x.graveyard/noise/modules/lang22
1 files changed, 22 insertions, 0 deletions
diff --git a/.graveyard/noise/modules/lang b/.graveyard/noise/modules/lang
new file mode 100755
index 00000000..07b6802e
--- /dev/null
+++ b/.graveyard/noise/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
+