Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > media > contrib-updates > by-pkgid > c7095aefea7b97fbd2a596dcbfb9d481 > files > 176

asterisk-docs-1.4.26.1-1mdv2008.1.i586.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Festival()</title><link rel="stylesheet" href="styles.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /><link rel="start" href="index.html" title="Asterisk™: The Future of Telephony" /><link rel="up" href="asterisk-APP-B.html" title="Appendix B. Application Reference" /><link rel="prev" href="asterisk-APP-B-75.html" title="FastAGI()" /><link rel="next" href="asterisk-APP-B-78.html" title="Flash()" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Festival()</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="asterisk-APP-B-75.html">Prev</a> </td><th width="60%" align="center">Appendix B. Application Reference</th><td width="20%" align="right"> <a accesskey="n" href="asterisk-APP-B-78.html">Next</a></td></tr></table><hr /></div><div class="refentry" lang="en" xml:lang="en"><a id="asterisk-APP-B-77"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>Festival() — Uses the Festival text-to-speech engine to read text to the
      caller</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a id="I_programlisting_tt2210"></a><pre class="programlisting">Festival(<em class="replaceable"><code>text</code></em>[,<em class="replaceable"><code>intkeys</code></em>])</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="id4184504"></a><h2></h2><p><a id="I_indexterm_tt2211" class="indexterm"></a>Connects to the locally running Festival server, sends it
      the text specified by <em class="replaceable"><code>text</code></em>, and plays the
      resulting sound file back to the user. This application allows the
      caller to press a key (specified by <em class="replaceable"><code>intkeys</code></em>)
      to immediately stop the playback and return the value of
      <em class="replaceable"><code>intkeys</code></em>. If
      <em class="replaceable"><code>intkeys</code></em> is set to <code class="literal">any</code>, <code class="literal">Festival()</code> will send control of the channel to
      the extension entered by the user.</p><p>See <a href="asterisk-CHP-14.html" title="Chapter 14. Potpourri">Chapter 14, <i>Potpourri</i></a> for more in-depth
      information on using Festival with Asterisk and the
      <span class="emphasis"><em>README.festival</em></span> file located in the
      <span class="emphasis"><em>contrib/</em></span> subdirectory of the Asterisk
      source.</p><p>You must start the Festival server before starting Asterisk, and
      you must use the <code class="literal">Answer()</code> application to answer the
      channel before calling <code class="literal">Festival()</code>.</p><a id="I_programlisting_tt2212"></a><pre class="programlisting">exten =&gt; 123,1,Answer()
<span class="strong"><strong>exten =&gt; 123,2,Festival('This is sample speech from Festival',#)</strong></span>
</pre></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="asterisk-APP-B-75.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="asterisk-APP-B.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="asterisk-APP-B-78.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">FastAGI() </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Flash()</td></tr></table></div><div xmlns="" id="svn-footer"><hr /><p>You are reading <em>Asterisk: The Future of Telephony</em> (2nd Edition for Asterisk 1.4), by Jim van Meggelen, Jared Smith, and Leif Madsen.<br />
       This work is licensed under the <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/">Creative Commons Attribution-Noncommercial-No Derivative Works License v3.0</a>.<br />
       To submit comments, corrections, or other contributions to the text, please visit <a href="http://oreilly.com/catalog/9780596510480/">http://www.oreilly.com/</a>.</p></div></body></html>