summaryrefslogtreecommitdiffstats
path: root/god/overlord
diff options
context:
space:
mode:
authorroot <root@krebs>2011-09-09 19:26:01 +0200
committerroot <root@krebs>2011-09-09 19:26:01 +0200
commit39026acca1b657ccf5446014ab7ca045c97e9cb3 (patch)
tree7728c0b19395e6b86466af1c46e76236f2cd4735 /god/overlord
parent9dcad72bd0b39a3d8dab2b128fe2383b11e49d04 (diff)
//god/overlord: making it work
Diffstat (limited to 'god/overlord')
-rwxr-xr-x[-rw-r--r--]god/overlord/overlord25
1 files changed, 18 insertions, 7 deletions
diff --git a/god/overlord/overlord b/god/overlord/overlord
index c7a79f35..501afc80 100644..100755
--- a/god/overlord/overlord
+++ b/god/overlord/overlord
@@ -1,8 +1,19 @@
-#!/bin/bash
-
-announcement=$1
-LC_ALL=C aplay -l|sed -n 's/^card \([0-9]\+\):.*\[USB Audio\]$/\1/p'
-
-mplayer -ao alsa:device=hw=$LC_ALL announce.mp3
-/krebs/util/bin/natural $announcement
+#! /bin/sh
+set -euf
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 90%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 80%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 70%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 60%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 50%
+/krebs/streams/streams stop
+amixer -q -c 0 -D hw:0 sset Front 100%
+mplayer announce.mp3
+/krebs/streams/streams start &
+espeak -v de -s 120 -a 900 "$*"
+amixer -q -c 0 -D hw:0 sset Front 40%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 50%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 60%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 70%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 80%
+sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 90%