summaryrefslogtreecommitdiff
path: root/Brotbacken.sh
blob: d7b6e7a4dd4b225a3d3d7ea1cad074972c32b0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT

espeak-ng -vde -w "$tmp_dir/falten.wav" 'Bitte den Teig dehnen und falten!'
espeak-ng -vde -w "$tmp_dir/Ofen_an.wav" 'Dreh bitte den Ofen bis zum Anschlag an!'
espeak-ng -vde -w "$tmp_dir/Brot_rein.wav" 'Tue bitte das Brot rein!'
espeak-ng -vde -w "$tmp_dir/Ofen_runter.wav" 'Dreh bitte den Ofen runter!'
espeak-ng -vde -w "$tmp_dir/Ofen_aus.wav" 'Mach bitte den Ofen aus und nimm den Deckel runter!'
espeak-ng -vde -w "$tmp_dir/Brot_raus.wav" 'Nimm bitte das Brot raus!'

skip=${1:-0}

for ((i=skip; i<3; i++)); do
  sleep 30m
  play "$tmp_dir/falten.wav"
done
if [ ${skip} -lt 4 ]; then
  sleep 20m
  play "$tmp_dir/Ofen_an.wav"
fi
if [ ${skip} -lt 5 ]; then
  sleep 40m
  play "$tmp_dir/Brot_rein.wav"
fi
sleep 5m
play "$tmp_dir/Ofen_runter.wav"
sleep 40m
play "$tmp_dir/Ofen_aus.wav"
sleep 5m
play "$tmp_dir/Brot_raus.wav"