asterisk-espeak

Description

asterisk-espeak is a eSpeak text-to-speech module for the Asterisk open-source PBX.

This provides the "eSpeak" dialplan application, which allows you to use the eSpeak TTS Engine with Asterisk. It invokes the eSpeak TTS engine locally via the eSpeak C API, and uses it to render text to speech.

Installation

Installation is a 3-part process:

Some of these packages may already be present on your system. Please also refer to the README file included in the source archive.

1. Install Asterisk development files

This module was developed for Asterisk 1.4 or earlier.

Installing Asterisk development files with yum (Fedora) []
  1. In a terminal, enter:
    yum install asterisk-devel
    This will install the development files needed to build asterisk-espeak.

Installing Asterisk from source []

Please refer to the documentation that comes with Asterisk for this procedure. It is recommended, however, to use your distribution's version of Asterisk (if available).



2. Install eSpeak

Installing eSpeak development files with yum (Fedora) []
  1. In a terminal, enter:
    yum install espeak-devel
    This will install the development files needed to build asterisk-espeak.

Installing and patching eSpeak from source []

    Please also refer to the documentation in the espeak source archive on how to install it. The instructions below are fairly generic installation instructions.

    1. Download eSpeak
    2. In a terminal, go to the directory where the file was saved
    3. Extract espeak (the filename may be different from the example below):
      unzip espeak-1.30-source.zip
    4. Compile espeak:

      make
    5. Install espeak:
      su -c 'make install'



3. Install asterisk-espeak

Installing asterisk-espeak RPM (Fedora) []
  1. Download the latest asterisk-espeak RPM
  2. In a terminal, go to the directory where the file was saved
  3. Install the asterisk-espeak module (your filename may be slightly different):
    rpm -Uhv asterisk-espeak-0.5-1.rpm

Installing asterisk-espeak from source []
  1. Download the latest version of asterisk-espeak
  2. In a terminal, go to the directory where the file was saved
  3. Extract asterisk-espeak (the filename may be different from the example below):
    tar -xzvf asterisk-espeak-0.5.tar.gz
  4. Build the asterisk-espeak module for your version of Asterisk:

    For Asterisk 1.4.x:
    make

    For Asterisk 1.2 or Asterisk 1.0:
    make ASTERISKVERSION=1.2
    or if using Asterisk 1.0:
    make ASTERISKVERSION=1.0

  5. Install the asterisk-espeak module:
    su -c 'make install'


Usage

Type "core show application espeak" at the Asterisk CLI prompt (or "show application espeak" if you are using Asterisk < 1.4).

asterisk-espeak has been designed to use the same syntax as the standard "festival" application that ships with Asterisk.

Links

Other Asterisk applications/extension modules by the author of this module:

SourceForge.net Logo