[asterisk-users] espeak app for asterisk 1.6

2009-09-01 Thread Lefteris Zafiris
I have written a module for asterisk that uses the eSpeak
speech synthesizer (http://espeak.sourceforge.net/) to
render text to speech. The source is available here:
http://zaf.github.com/Asterisk-eSpeak/
It's similar to app_festival and app_flite.
It's only tested against asterisk 1.6.1 on x86 Linux but it must be
working for other 1.6 branches too. Comments, fixes and suggestion are
welcome.


===
 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
**It is recommended to use espeak version 1.41.01 or newer.
Earlier version of epseak had an file descriptor leak that could 
cause asterisk to crash. If upgrading is not an option patch your 
current 
version of epseak with the espeak.patch provided here.
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 Greek
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.
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] espeak app for asterisk 1.6

2009-09-01 Thread Lefteris Zafiris
Steve Edwards wrote:
 On Tue, 1 Sep 2009, Lefteris Zafiris wrote:
 
 I have written a module for asterisk that uses the eSpeak speech 
 synthesizer (http://espeak.sourceforge.net/) to render text to speech. 
 The source is available here: http://zaf.github.com/Asterisk-eSpeak/
 
 I hope it sounds a whole lot better in practice than it does on their
 sample available at http://espeak.sourceforge.net/samples/raven.ogg
 
 Cepstral's Allison font is miles ahead.
 
Actually it sounds like that demo. You can improve it a bit by altering
the voice settings (speed pitch etc) in the config but it cannot
match Cepstrals solution. Flite (in which Cepstral is based) gives a
better sound but its limited in voice support (i think it supports only
English)

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] espeak app for asterisk 1.6

2009-09-01 Thread Steve Edwards
On Tue, 1 Sep 2009, Lefteris Zafiris wrote:

 I have written a module for asterisk that uses the eSpeak speech 
 synthesizer (http://espeak.sourceforge.net/) to render text to speech. 
 The source is available here: http://zaf.github.com/Asterisk-eSpeak/

I hope it sounds a whole lot better in practice than it does on their
sample available at http://espeak.sourceforge.net/samples/raven.ogg

Cepstral's Allison font is miles ahead.

-- 
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users