Book Image

FreeSWITCH 1.6 Cookbook

By : Giovanni Maruzzelli, Anthony Minessale II
Book Image

FreeSWITCH 1.6 Cookbook

By: Giovanni Maruzzelli, Anthony Minessale II

Overview of this book

Table of Contents (14 chapters)
FreeSWITCH 1.6 Cookbook
About the Authors
About the Reviewers

Advanced text-to-speech with mod_tts_commandline

Text-to-speech (TTS) applications vary in their quality, complexity, and price. However, one thing that most high-end TTS engines have in common is a command-line interface for generating audio from text. FreeSWITCH's mod_tts_commandline module is designed to take advantage of this. While it is completely possible to create a separate module for each engine—and indeed this is the case for mod_flite—it is convenient to utilize a more generic interface that is somewhat agnostic to the exact TTS engine being used.

In this recipe, we will install mod_tts_commandline and then download a free TTS engine that has a command-line interface for use with it. We will also show command-line examples of using some commercial TTS engines.

Getting ready

This recipe has a few prerequisites. The most important one is to get a copy of the freeswitch-contrib git repository. The "contrib repo," as community members call it, contains a number of items given back freely...