#!/bin/bash tmp_dir=$(mktemp -d) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT 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_sir/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} if [ ${skip} -lt 1 ]; then sleep 20m play "$tmp_dir/Ofen_an.wav" fi if [ ${skip} -lt 2 ]; 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"