Isdnlog-plugin

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Alles neu....)
(Installation)
Zeile 17: Zeile 17:
  
 
==Installation==
 
==Installation==
Das Plugin ist vorher zu entpacken und zu verlinken!
+
Das Plugin ist vorher zu entpacken/verlinken!
  
 
* libmad, libsndfile, isdn4k-utils
 
* libmad, libsndfile, isdn4k-utils
Zeile 48: Zeile 48:
 
</pre>
 
</pre>
  
Im Makefile des Plugin war eine kleine Änderung nötig. (nur bei --prefix=/usr/local)
+
Im Makefile des Plugin eine kleine Änderung. (nur bei ''--prefix=/usr/local'')
  
 
<pre>
 
<pre>
Zeile 87: Zeile 87:
 
</pre>
 
</pre>
  
Die '''/etc/txt2pho''' anzupassen.
+
Die '''/etc/txt2pho''' ist anzupassen.
  
 
<pre>
 
<pre>
Zeile 95: Zeile 95:
 
</pre>
 
</pre>
  
Vorm übersetzen, des Plugin, ist eine Änderung in der '''isdnlog.c''' nötig.
+
Vorm übersetzen, des Plugin, noch eine Änderung in der '''isdnlog.c''' nötig.
  
 
<pre>
 
<pre>

Version vom 12. April 2005, 13:29 Uhr

Inhaltsverzeichnis

Beschreibung

Autor: Andreas Kool

Dieses Plugin erhält von einem irgendwo im eigenen LAN laufenden isdnlog Informationen über Telefonanrufe, und zeigt diese dann auf dem Fernseher an.

Bilder

Anruf von ...

Hardwareanforderungen

  • ISDN Karte oder ISDN Router

Softwareanforderungen

  • libmad
  • libsndfile
  • isdn4k-utils
  • soundfiles (speech-system)

Installation

Das Plugin ist vorher zu entpacken/verlinken!

  • libmad, libsndfile, isdn4k-utils
cd $SOURCEDIR
tar xvzf libmad-<VERSION>.tar.gz
cd libmad-<VERSION>
./configure --prefix=/usr/local
make
make install
ldconfig
cd -

tar xvzf libsndfile-<VERSION>.tar.gz
cd libsndfile-<VERSION>
./configure --prefix=/usr/local
make
make install
ldconfig
cd -

tar xvfj isdn4k-utils.<VERSION>.tar.bz2
cd isdn4k-utils
cp $SOURCEDIR/VDR/PLUGINS/src/isdnlog/examples/.config .
make menuconfig # <EXIT> -> <YES>
make

ln -s $SOURCEDIR/isdn4k-utils $SOURCEDIR/VDR/PLUGINS/src/isdnlog/isdn4k-utils

Im Makefile des Plugin eine kleine Änderung. (nur bei --prefix=/usr/local)

-LIB=$(ISDNLOG)/connect/*.o $(ISDNLOG)/../lib/libisdn.a -lmad -lsndfile
+LIB=$(ISDNLOG)/connect/*.o $(ISDNLOG)/../lib/libisdn.a
+LIBS     = -lmad -lsndfile

-	$(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIB) -o $@
+	$(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) $(LIB) -o $@
  • languages and voices pack
mkdir -p /usr/local/share/speech
unzip de3-000307.zip -d /usr/local/share/speech
  • speech synthesizer
unzip mbr301h.zip -d /usr/local/bin
ln -s /usr/local/bin/mbrola-linux-i386 /usr/local/bin/mbrola
  • txt2pho
unzip txt2pho.zip -d /usr/local/share
cd /usr/local/share/txt2pho
cp txt2phorc /etc/txt2pho
unzip preproc.zip
cd preproc
mkdir obj
make
cp preproc ../txt2pho ../pipefilt /usr/local/bin
cp Rules.lst Hadifix.abk ../data

Die /etc/txt2pho ist anzupassen.

DATAPATH=/usr/local/share/txt2pho/data/
INVPATH=/usr/local/share/txt2pho/data/
INVENTORY=female

Vorm übersetzen, des Plugin, noch eine Änderung in der isdnlog.c nötig.

- sprintf(cmd, "echo \"%s\" | /video/mbrola/preproc /video/mbrola/Rules.lst /video/mbrola/Hadifix.abk | /video/mbrola/txt2pho -f | /video/mbrola/mbrola-linux-i386 /video/mbrola/de3 - -.au > %s",
+ sprintf(cmd, "echo \"%s\" | /usr/local/bin/preproc /usr/local/share/txt2pho/data/Rules.lst /usr/local/share/txt2pho/data/Hadifix.abk | /usr/local/bin/txt2pho -f | /usr/local/bin/mbrola-linux-i386 /usr/local/share/speech/de3/de3 - -.au > %s",

Konfiguration

Probleme

  • mit "deaktivierter" Sprachausgabe bleibt die OSD-Anzeige nur fuer einige Millisekunden stehen.

Alternativen

Siehe: svdrp-isdnanruf

Links

[1] http://www.isdn4linux.de isdn4k-utils
[2] http://www.underbit.com/products/mad (M)PEG (A)udio (D)ecoder Homepage
[3] http://www.zip.com.au/~erikd/libsndfile Homepage -> libsndfile
[4] http://tcts.fpms.ac.be/synthesis/mbrola.html MBROLA synthesizer
[5] http://www.ikp.uni-bonn.de/dt/forsch/phonetik/hadifix/HADIFIXforMBROLA.html Txt2pho - German TTS front end
[6] http://akool.bei.t-online.de/vdr Homepage des isdnlog plugins