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:
- installation of Asterisk's development header files,
- installation of the eSpeak TTS engine, and
- installation of the asterisk-espeak module.
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) | [−] |
- 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) | [−] |
- 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 | [−] |
- Download eSpeak
- In a terminal, go to the directory where the file was saved
- Extract espeak (the filename may be different from the example below):
unzip espeak-1.30-source.zip
- Install espeak:
su -c 'make install'
Please also refer to the documentation in the espeak source archive on how to install it. The instructions below are fairly generic installation instructions.
Compile espeak:
make
3. Install asterisk-espeak
Installing asterisk-espeak RPM (Fedora) | [−] |
- Download the latest asterisk-espeak RPM
- In a terminal, go to the directory where the file was saved
- Install the asterisk-espeak module (your filename may be slightly different):
rpm -Uhv asterisk-espeak-0.5-1.rpm
Installing asterisk-espeak from source | [−] |
- Download the latest version of asterisk-espeak
- In a terminal, go to the directory where the file was saved
- Extract asterisk-espeak (the filename may be different from the example below):
tar -xzvf asterisk-espeak-0.5.tar.gz
- Install the asterisk-espeak module:
su -c 'make install'
Build the asterisk-espeak module for your version of Asterisk:
make
make ASTERISKVERSION=1.2or if using Asterisk 1.0:
make ASTERISKVERSION=1.0
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:
- asterisk-agi-audiotx - AGI extension module that adds commands to allow the transfer of audio files to and from Asterisk via an AGI session
- asterisk-flite - dialplan application providing speech synthesis using the Flite text-to-speech engine