Coder Social home page Coder Social logo

digideskio / asterisk-espeak Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zaf/asterisk-espeak

0.0 1.0 0.0 110 KB

Asterisk module that provides the "eSpeak" dialplan application. It allows you to use the eSpeak text to speech synthesizer. Works with asterisk 1.6 or newer.

Home Page: http://zaf.github.com/Asterisk-eSpeak/

License: GNU General Public License v2.0

Makefile 15.79% C 84.21%

asterisk-espeak's Introduction

===========================================
           Espeak For Asterisk
===========================================

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.
It works with asterisk versions 1.6 or later

------------
Requirements
------------
Asterisk header files
Espeak libraries and header files
	**It is recommended to use espeak version 1.41.01 or newer.
	Earlier versions of epseak had a 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.
libsamplerate libraries and header files


------------
Installation
------------
$ make
$ make install

To install the sample configuration file, issue the following 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("${MYTEXT}",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.

--------
Homepage
--------
http://zaf.github.io/Asterisk-eSpeak/

asterisk-espeak's People

Contributors

crschmidt avatar zaf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.