Huge thanks to Joshua Colp for mirroring services

espeak app for Asterisk 1.6

Share on Twitter Digg this story Click to view a printable version Tue, 01 Sep 2009 18:18:00 -0300

ESpeakLefteris Zafiris has written a multi language text to speech module for Asterisk 1.6:

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.


You haven't voted yet! Vote:
Current Rating: 9.22/10 (9 votes)

Comments (1 posted)


CommentTiffanys
Written by tiffanys (November 6, 2009, 10:46 pm)

Good site. Thanks.

Comments
Name:
Subject:
Website:
Message: 

Similar Articles (Based on Title)

espeak app for Asterisk 1.6 - September 2, 2009
Lefteris Zafiris has written a multi language text to speech module for Asterisk 1.6

New App In bugs.digium.com (not in CVS) - September 20, 2004
This app was put together so as to be able to deal with answering machines when making outbound calls. The idea is that you probably don't want to start playing your soundfile until the call has been fully answered by a human, and there has been a given amount of silence.

Asterisk-Users: Voicemail Outcall Notification App - November 11, 2004
Damon has posted details of the resolution of the bounty for the Voicemail Outcall Notification Application and asked for people to test it.

Patch to OSS app for CDP without a Cisco switch - TESTERS WANTED - March 1, 2007
Kristian Kielhofner has written details of a patch for CDP to work with Polycom and Cisco phones without using a Cisco switch.

3rd Party App Licensing for Asterisk: How can we do it - May 18, 2008
The VoIP-Insider blog has a post which details some discussions that took place on the Asterisk conference call regarding using the g729 licensing system to provide access to third party Asterisk applications.

AsteriskRef Free iPhone application available on app store - February 19, 2010
AsteriskRef is a small app which acts as a reference guide for Asterisk applications and functions written by me.

Daily Asterisk News iPhone and iPod touch app released - March 19, 2010
Hi all, I have written an app to browse the Daily Asterisk News on your iPhone or iPod touch. Hope you enjoy it.

*-cvs: asterisk-sounds sounds-extra.txt,1.6,1.7 - January 7, 2005
LogMessage: Add special prompt in honor of Allison's engagement!

Asterisk 1.6 Release Management Proposal - October 18, 2007
Russell has posted an extensive document on the release management proposal for Asterisk 1.6.

Libpri version for 1.6 Asterisk - May 9, 2008
Matthew Fredrickson has posted details on which version of libpri to use with Asterisk 1.6

Asterisk 1.6, Now with Distributed Presence - June 12, 2008
Russell has posted an item on his blog regarding distributed presence in Asterisk 1.6 based on his distributed event model.

New Asterisk 1.6 Releases - March 24, 2009
The Asterisk.org development team is pleased to announced the release of Asterisk release candidates 1.6.0.7-rc2, 1.6.1.0-rc3, and beta release 1.6.2.0-beta1. Additionally, new release candidates of Asterisk-Addons 1.6.0.2-rc1 and 1.6.1.0-rc3 have been created.


Original Content (C) 2004-2010 Matt Riddell
Back 5  Feed Add
to
Google Subscribe with Bloglines
Go to today

Icons by: FastIcon.com


Back to life
July 21, 2010 Average Vote: 10
Hey all - I am back online after some pretty big projects which have taken all my time. Will be updating the Asterisk news over the next few days.

Nerd Vittles: Building a Bluetooth Proximity Detection System with Asterisk
December 12, 2005 Average Vote: 10
The Nerd Vittles site has an article on proximity detection using Asterisk and a TomTom GPS

Automated Testing Update
July 30, 2010 Average Vote: 10
Russell Bryant has posted details of a new mailing list for automated testing of Asterisk and some information on the progress that has been made. There is no way to say how important I think this work is. It really makes a huge difference to Asterisk and the ability to use it in an enterprise environment. Really great work.

VoIP-Info: FFasterisk Video file converter
August 25, 2006 Average Vote: 10
The wiki has a link to a new piece of software for converting video to the format required for Asterisk.

Code Review: SRTP support for Asterisk
March 12, 2009 Average Vote: 10
Terry Wilson has moved his SRTP branch onto the Digium review board.

HumBug - Pre BETA Launch Registration
July 27, 2010 Average Vote: 10
Nir Simionovich has posted details of the beta of the new call analytics service.

Interview with BKW_
December 7, 2004 Average Vote: 10
We've finally completed our interview with BKW. Hope you like! :-)

SlashDot: GSM and Asterisk Integration
August 21, 2005 Average Vote: 10
There is a post up on SlashDot which talks about using cellphones with Asterisk.

Interview with Mark Spencer
November 26, 2004 Average Vote: 9.9
We have managed to get an interview with Mark Spencer AKA Markster. Mark Spencer is the creator of Asterisk and by far the most active developer.

Asterisk and Kamailio realtime integration tutorial
May 24, 2010 Average Vote: 9.9
Daniel-Constantin Mierla has posted a link to a tutorial on integrating Asterisk and Kamailio using realtime.

Asterisk IPv6 update
February 1, 2010 Average Vote: 9.8
Olle has posted an update on IPV6 in Asterisk and a link to a blog post of his.

Proposal for T.38 transparent gateway design in Asterisk
April 29, 2010 Average Vote: 9.8
Kevin Fleming has posted a proposed design for a transparent T.38 gateway for Asterisk:

Asterisk Monitoring with iPhone and iPod touch
February 12, 2010 Average Vote: 9.7
For the past couple of weeks I have been working on an app that allows you to monitor and restart Asterisk servers.

Monitoring Asterisk with Munin
January 7, 2010 Average Vote: 9.7
I had a few requests for these munin plugins after some discussion on one of the Asterisk lists and thought people might like them.

New Zealand Asterisk Voices
March 2, 2006 Average Vote: 9.7
Chris Hodgetts has posted details of recordings of Asterisk Sounds with a New Zealand accent.


Automated Testing Update
July 30, 2010
Russell Bryant has posted details of a new mailing list for automated testing of Asterisk and some information on the progress that has been made. There is no way to say how important I think this work is. It really makes a huge difference to Asterisk and the ability to use it in an enterprise environment. Really great work.

Asterisk 1.8.0-beta2 Now Available
July 28, 2010
The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta2.

HumBug - Pre BETA Launch Registration
July 27, 2010
Nir Simionovich has posted details of the beta of the new call analytics service.

Branch Merging Changes
July 26, 2010
Russell Bryant has posted details of some changes to the way developers need to commit code to Asterisk because of the newly released 1.8 branch.

Asterisk 1.8.0-beta1 is Now Available
July 26, 2010
The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta1. This release marks the beginning of the testing process for the eventual release of Asterisk 1.8.0.

Asterisk 1.6.2.10 Now Available
July 26, 2010
The Asterisk Development Team has announced the release of Asterisk 1.6.2.10.

Asterisk 1.4.34 Now Available
July 26, 2010
The Asterisk Development Team has announced the release of Asterisk 1.4.34.

AppleRaisin - AstDB over realtime
July 23, 2010
Olle has posted a note about his awesome AppleRaisin branch which provides the ability to store AstDB in realtime. This would make for a much simpler failover and clustering situation.

QueueMetrics 1.6.1 released
July 22, 2010
Lenz has posted a note to inform us that QueueMetrics version 1.6.1 has been released. This release offers a large number of bug fixes, misc improvements and new developements including hotdesking.

Asterisk 1.8 Branch Creation
July 22, 2010
Russell Bryant has posted a note to inform us of the creation of the 1.8 branch of Asterisk.