Hallo liebe vdr-gemeinde,
im Teil 1 ging es um die "Wer-ruft-an" Benachrichtigung über das OSD des TV's.
http://www.vdrportal.de/board/thread.php?threadid=749&sid=
Diesmal wollen wir es etwas audiophiler
Horch, wer ruft mich da denn an?
neben der Message aufs OSD soll jetzt der vdr muten, uns sagen wer anruft und wieder de-muten.
benötigte files:
mbrola Speech Synthesizer:
http://tcts.fpms.ac.be/synthes…a/bin/pclinux/mbr301h.zip
mbrola Voice (de3 female ist state-of-the-art):
http://tcts.fpms.ac.be/synthes…la/dba/de3/de3-000307.zip
txt2pho TextToSpeech Frontend für mbrola:
http://www.ikp.uni-bonn.de/~tpo/txt2pho.zip
entpacken:
/usr/local/mbrola
/usr/local/mbrola/de3
/usr/local/mbrola/txt2pho
preproc kompilieren:
/usr/local/mbrola/txt2/pho/preproc.zip entpacken,
ins verzeichnis preproc wechseln, mkdir obj, make
kopieren:
cp /usr/local/mbrola/mbrola-linux-i386 /usr/bin/mbrola
cp /usr/local/mbrola/txt2pho/txt2pho /usr/bin
cp /usr/local/mbrola/txt2pho/preproc/preproc /usr/bin
cp /usr/local/mbrola/txt2pho/txt2phorc /etc/txt2pho
/etc/txt2pho anpassen:
DATAPATH=/usr/local/mbrola/txt2pho/data/
INVPATH=/usr/local/mbrola/txt2pho/data/
TEMPPATH=/tmp/
INVENTORY=female
DEBUGLEVEL=0
NEWTREE=newtree
REDUCTION=1
PROMCOMP=1
SPEECHRATE=1.15
USENET=3
/usr/bin/speech.sh erstellen:
if [ x"$#" = x"0" ]; then
file=/dev/stdin
else
file=${1}
fi
cat $file | preproc /usr/local/mbrola/txt2pho/preproc/Rules.lst /usr/local/mbrola/txt2pho/preproc/Hadifix.abk \
| txt2pho -f | mbrola /usr/local/mbrola/de3/de3 - -.au | play - -t au
isdn2htpc anpassen (siehe Teil1):
#!/bin/sh
ANRUFER=$1
NUMMER=$2
/usr/local/src/VDR/svdrpsend.pl HITK Mute
echo "Achtung! Es kommt ein Anruf von: $ANRUFER" | speech.sh
/usr/local/src/VDR/svdrpsend.pl HITK Mute
count=1
until [ $count -eq 6 ]
do
/usr/local/src/VDR/svdrpsend.pl -d htpc MESG Anruf von: $ANRUFER --- $NUMMER
sleep 5
let count=$count+1
done
Radio oder MTV hören, in der Wohnung was erledigen ohne TV zu glotzen und hören, wer anruft...
nice isn't it?