FreeSWITCH          




Page tree
Skip to end of metadata
Go to start of metadata

About

Run a command line and play the output file.

It is mainly for testing purpose. It may not fit for extensive use (but it may). Once you have chosen your TTS engine, write a native module!

 Click here to expand Table of Contents

Installing mod_tts_commandline

  •  In modules.conf, add asr_tts/mod_tts_commandline.

Linux:

  • Run make, make install.

Windows:

  • copy the msvc project from freeswitch-contrib in grmt\mod_tts_commandline for windows
  • add project to Freeswitch.2010.sln and build it (sorry, I didn't test MSVC 2008)

Configuring mod_tts_commandline

  • In freeswitch/conf/autoload_configs/modules.conf.xml, uncomment <load module="mod_tts_commandline"/>.
  • Edit conf/autoload_configs/tts_commandline.conf.xml.
  • Reload configuration by reloadxml (or restarting FreeSWITCH)
  • Add tts_commandline to dialplan (or phrase, etc.) like this:

Example commands

Using festival's text2wave:


Using festival's server client:

(may be needed adjust festival's default sample rate on server)

Using Cepstral's swift:

Using espeak (using sox to adjust sample rate):

Using espeak + mbrola :

Using lliaphon + mbrola (French voice fr4) (NB it does not work for me):

Using svox pico (from the Android project - supports it-IT, fr-FR, es-ES, de-DE, en-US and en-GB languages:

(You should apply patches from here (see also issue 4362 and issue 4363)

Write your own here...

Notes on svox pico

Windows:

  • build from MSVC 2010 solution file freeswitch-contrib in grmt\svox pico\svoxpico for windows (again sorry I didn't do MSVC 2008)

Linux (at least tested on x64 centos - includes fixes from below and even more fixes from debian-sid and some more fixes to make it compatible with MSVC 2010):

  • freeswitch-contrib in grmt/svox\ pico/svox/pico
  • sh ./autogen.sh
  • ./configure
  • make && make install

or alternatively :

Here is a sample of cmd that work on centos 5 64bit (This code includes a fix so it works ok on a 64bit system)