O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Festival() — Uses the Festival text-to-speech engine to read text to the caller

Synopsis

    Festival(text[,intkeys])

Connects to the locally running Festival server, sends it the text specified by text, and plays the resulting sound file back to the user. This application allows the caller to press a key (specified by intkeys) to immediately stop the playback and return the value of intkeys. If intkeys is set to any, Festival() will send control of the channel to the extension entered by the user.

See Chapter 10 for more in-depth information on using Festival with Asterisk.

You must start the Festival server before starting Asterisk, and you must use the Answer() application to answer the channel before calling Festival().

Tip

For more information on using Festival from within Asterisk, see the README.festival file located in the contrib/ subdirectory of the Asterisk source.

    exten => 123,1,Answer()
    exten => 123,2,Festival('This is sample speech from Festival',#)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required