summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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%