Isdnlog-plugin
Aus VDR Wiki
(Unterschied zwischen Versionen)
Wirbel (Diskussion | Beiträge) |
|||
| (31 dazwischenliegende Versionen von 17 Benutzern werden nicht angezeigt) | |||
| Zeile 4: | Zeile 4: | ||
Dieses Plugin erhält von einem irgendwo im eigenen LAN laufenden isdnlog Informationen über Telefonanrufe, und zeigt diese dann auf dem Fernseher an. | Dieses Plugin erhält von einem irgendwo im eigenen LAN laufenden isdnlog Informationen über Telefonanrufe, und zeigt diese dann auf dem Fernseher an. | ||
| + | <!-- ===Status=== --> | ||
| + | ==Bilder== | ||
[[Bild:isdnlog-plugin.jpg|thumb|none|''Anruf von ...'']] | [[Bild:isdnlog-plugin.jpg|thumb|none|''Anruf von ...'']] | ||
| + | <!-- ==Bedienung== --> | ||
| + | <!-- ===[[SVDRP]] Befehle=== --> | ||
==Hardwareanforderungen== | ==Hardwareanforderungen== | ||
* ISDN Karte oder ISDN Router | * ISDN Karte oder ISDN Router | ||
| − | == Softwareanforderungen == | + | |
| + | ==Softwareanforderungen== | ||
* libmad | * libmad | ||
* libsndfile | * libsndfile | ||
* isdn4k-utils | * isdn4k-utils | ||
| − | * | + | * speech-system |
| + | |||
==Installation== | ==Installation== | ||
| − | ==Konfiguration== | + | <!-- ===Optionen=== --> |
| − | ==Probleme== | + | <!-- ===Patches=== --> |
| − | * mit "deaktivierter" Sprachausgabe bleibt die OSD-Anzeige nur | + | Das Plugin ist vorher zu entpacken/verlinken! |
| + | |||
| + | * libmad, libsndfile, isdn4k-utils | ||
| + | |||
| + | <pre> | ||
| + | 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 | ||
| + | </pre> | ||
| + | |||
| + | Im Makefile des Plugin eine kleine Änderung. (nur bei ''--prefix=/usr/local'') | ||
| + | |||
| + | <pre> | ||
| + | - 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 $@ | ||
| + | </pre> | ||
| + | |||
| + | Folgendes ist jedoch zwingend. | ||
| + | |||
| + | <pre> | ||
| + | - ISDNLOG=isdn4k-utils/isdnlog | ||
| + | + ISDNLOG=$SOURCEDIR/isdn4k-utils/isdnlog | ||
| + | </pre> | ||
| + | |||
| + | * languages and voices pack | ||
| + | |||
| + | <pre> | ||
| + | unzip de3-000307.zip -d /usr/local/share/speech | ||
| + | </pre> | ||
| + | |||
| + | * speech synthesizer | ||
| + | |||
| + | <pre> | ||
| + | unzip mbr301h.zip -d /usr/local/bin | ||
| + | ln -s /usr/local/bin/mbrola-linux-i386 /usr/local/bin/mbrola | ||
| + | </pre> | ||
| + | |||
| + | * txt2pho | ||
| + | |||
| + | <pre> | ||
| + | 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 | ||
| + | </pre> | ||
| + | |||
| + | Die '''/etc/txt2pho''' ist anzupassen. | ||
| + | |||
| + | <pre> | ||
| + | DATAPATH=/usr/local/share/txt2pho/data/ | ||
| + | INVPATH=/usr/local/share/txt2pho/data/ | ||
| + | INVENTORY=female | ||
| + | </pre> | ||
| + | |||
| + | Vorm übersetzen des Plugins, noch eine Änderung in der '''isdnlog.c'''. | ||
| + | |||
| + | <pre> | ||
| + | - 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", | ||
| + | </pre> | ||
| + | |||
| + | <!-- ==Konfiguration== --> | ||
| + | <!-- ===Einstellungen=== --> | ||
| + | <!-- ===Parameter=== --> | ||
| + | ==Sonstiges== | ||
| + | ===Probleme=== | ||
| + | * mit "deaktivierter" Sprachausgabe bleibt die OSD-Anzeige nur für einige Millisekunden stehen. | ||
| + | |||
| + | ===Tipps=== | ||
| + | * Alternative: Siehe: [[svdrp-isdnanruf]] | ||
| + | |||
| + | <!-- ===Wunschliste=== --> | ||
| + | <!-- ===Snapshot=== --> | ||
| + | |||
==Links== | ==Links== | ||
| − | + | # [http://www.isdn4linux.de Isdn4k-utils] | |
| − | + | # [http://www.underbit.com/products/mad MAD (M)PEG (A)udio (D)ecoder Homepage] | |
| − | + | # [http://www.zip.com.au/~erikd/libsndfile Libsndfile] | |
| − | + | # [http://tcts.fpms.ac.be/synthesis/mbrola.html MBROLA synthesizer] | |
| − | + | # [http://www.ikp.uni-bonn.de/dt/forsch/phonetik/hadifix/HADIFIXforMBROLA.html Txt2pho - German TTS front end] | |
| − | + | [[Kategorie:Veraltete Plugins]] | |
| − | + | {{i18n|isdnlog-plugin}} | |
Aktuelle Version vom 3. August 2013, 17:27 Uhr
Inhaltsverzeichnis |
[Bearbeiten] 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.
[Bearbeiten] Bilder
[Bearbeiten] Hardwareanforderungen
- ISDN Karte oder ISDN Router
[Bearbeiten] Softwareanforderungen
- libmad
- libsndfile
- isdn4k-utils
- speech-system
[Bearbeiten] 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
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 $@
Folgendes ist jedoch zwingend.
- ISDNLOG=isdn4k-utils/isdnlog + ISDNLOG=$SOURCEDIR/isdn4k-utils/isdnlog
- languages and voices pack
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 Plugins, noch eine Änderung in der isdnlog.c.
- 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",
[Bearbeiten] Sonstiges
[Bearbeiten] Probleme
- mit "deaktivierter" Sprachausgabe bleibt die OSD-Anzeige nur für einige Millisekunden stehen.
[Bearbeiten] Tipps
- Alternative: Siehe: svdrp-isdnanruf