From 39026acca1b657ccf5446014ab7ca045c97e9cb3 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 9 Sep 2011 19:26:01 +0200 Subject: //god/overlord: making it work --- god/overlord/overlord | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) mode change 100644 => 100755 god/overlord/overlord (limited to 'god/overlord') diff --git a/god/overlord/overlord b/god/overlord/overlord old mode 100644 new mode 100755 index c7a79f35..501afc80 --- 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% -- cgit v1.2.3