Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit fe92b70ead930ba16350f39ae355c12fded9664c @zaf committed Sep 1, 2009
Showing with 845 additions and 0 deletions.
  1. +339 −0 COPYING
  2. +2 −0 ChangeLog
  3. +68 −0 Makefile
  4. +59 −0 README
  5. +328 −0 app_espeak.c
  6. BIN app_espeak.o
  7. BIN app_espeak.so
  8. +1 −0 authors
  9. +48 −0 espeak.conf.sample
339 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,2 @@
+2009-02-09 Lefteris Zafiris <zaf.000@gmail.com> - 1.6-0.1-beta
+ Initial release 1.6-0.1-beta
@@ -0,0 +1,68 @@
+#
+# Makefile for Asterisk espeak application
+#
+
+INSTALL=install
+ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
+MODULES_DIR=$(ASTLIBDIR)/modules
+ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
+
+CC=gcc
+OPTIMIZE=-O2
+DEBUG=-g
+
+LIBS+=-lm -lespeak -lsndfile -lresample
+CFLAGS+=-pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
+
+all: _all
+ @echo " +-------- app_espeak Build Complete --------+"
+ @echo " + app_espeak has successfully been built, +"
+ @echo " + and can be installed by running: +"
+ @echo " + +"
+ @echo " + make install +"
+ @echo " +-------------------------------------------+"
+
+_all: app_espeak.so
+
+app_espeak.o: app_espeak.c
+ $(CC) $(CFLAGS) $(DEBUG) $(OPTIMIZE) -c -o app_espeak.o app_espeak.c
+
+app_espeak.so: app_espeak.o
+ $(CC) -shared -Xlinker -x -o $@ $< $(LIBS)
+
+clean:
+ rm -f app_espeak.o app_espeak.so .*.d
+
+install: _all
+ $(INSTALL) -m 755 -d $(DESTDIR)$(MODULES_DIR)
+ $(INSTALL) -m 755 app_espeak.so $(DESTDIR)$(MODULES_DIR)
+ @echo " +---- app_espeak Installation Complete -----+"
+ @echo " + +"
+ @echo " + app_espeak has successfully been installed+"
+ @echo " + If you would like to install the sample +"
+ @echo " + configuration file run: +"
+ @echo " + +"
+ @echo " + make samples +"
+ @echo " +-------------------------------------------+"
+
+samples:
+ mkdir -p $(DESTDIR)$(ASTETCDIR)
+ for x in *.sample; do \
+ if [ -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ]; then \
+ if [ "$(OVERWRITE)" = "y" ]; then \
+ if cmp -s $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $$x ; then \
+ echo "Config file $$x is unchanged"; \
+ continue; \
+ fi ; \
+ mv -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample`.old ; \
+ else \
+ echo "Skipping config file $$x"; \
+ continue; \
+ fi ;\
+ fi ; \
+ $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ;\
+ done
+
+ifneq ($(wildcard .*.d),)
+ include .*.d
+endif
59 README
@@ -0,0 +1,59 @@
+===========================================
+ Espeak For Asterisk 1.6
+===========================================
+
+This provides the "Espeak" dialplan application, which allows you to use
+the Espeak speech synthesizer with Asterisk. This module invokes the Espeak TTS engine
+locally, and uses it to render text to speech.
+
+------------
+Requirements
+------------
+Asterisk 1.6 header files
+Espeak libraries and header files
+libsndfile libraries and header files
+libresample libraries and header files
+
+------------
+Installation
+------------
+$ make
+$ make install
+
+To install the sample configuration file, issue the following command after
+the 'make install' command:
+
+$ make samples
+
+-----
+Usage
+-----
+Espeak(text[,intkeys,language]): This will invoke the eSpeak TTS engine,
+send a text string, get back the resulting waveform and play it to
+the user, allowing any given interrupt keys to immediately terminate
+and return.
+
+--------
+Examples
+--------
+dialplan sample code for your extensions.conf
+
+;Espeak Demo
+ exten => 1234,1,Answer()
+ ;;Play mesage using default language as set in espeak.conf
+ exten => 1234,n,Espeak("This is a simple espeak test in english.",any,)
+ ;;Play message in Spanish
+ exten => 1234,n,Espeak("Esta es una simple prueba espeak en español.",any,es)
+ ;;Play message in Grrek
+ exten => 1234,n,Espeak("Αυτό είναι ένα απλό τέστ του espeak στα ελληνικά.",any,el)
+ ;;Read a text file from disk (relative to the channel language)
+ ;;and play it with espeak using the asterisk channel language.
+ exten => 1234,n,ReadFile(MYTEXT=/path/${LANGUAGE}/myfile,200)
+ exten => 1234,n,Espeak("${MYTEXY}",any,${LANGUAGE})
+ exten => 1234,n,Hangup()
+
+-------
+License
+-------
+The Espeak module for asterisk is distributed under the GNU General Public
+License v2. See COPYING for details.
Oops, something went wrong.

0 comments on commit fe92b70

Please sign in to comment.