#!/bin/bash
ROOT=/usr/share/mbrola          # Where are the needed files?
VOICE=$ROOT/de6/de6             # Path to the mbrola-voice
SEX=m                           # m/f Which sex has your voice?
file="$1"
eval "cat $file | recode UTF-8..Latin-1 |\
sed 's/@/ ät /g' |\
/usr/bin/pipefilt |\
/usr/bin/preproc $ROOT/Rules.lst $ROOT/Hadifix.abk |\
/usr/bin/txt2pho -$SEX -p $ROOT/data/ |\
/usr/bin/mbrola $VOICE - -.au |\
play -t au -"
