<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 2:24 PM, Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">The usual method is to create phrases for everything you want.<div><a href="http://wiki.freeswitch.org/wiki/Speech_Phrase_Management" target="_blank">http://wiki.freeswitch.org/wiki/Speech_Phrase_Management</a> with the &quot;play-file&quot; <span style="line-height:1.1em">function</span>.</div>


<div><br></div><div><div>But if you frequently have things SAY is great for - numbers and spelling out words - then you can modify as MC said.</div><div><span class="HOEnZb"><font color="#888888"><br clear="all"><div dir="ltr">
<span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div></font></span><br></div></div></div></blockquote></div><br>Thanks Avi, that&#39;s what I was getting at. You use the &quot;say&quot; app to let FS do the work of how to pronounce something, e.g.:<br>
<br>&lt;action application=&quot;say&quot; data=&quot;en number pronounced 1234&quot;/&gt;<br>Caller hears &quot;one thousand, two hundred, thirty-four&quot;<br><br>&lt;action application=&quot;say&quot; data=&quot;en number iterated 1234&quot;/&gt;<br>

Caller hears &quot;one two three four&quot;<br><br>You don&#39;t need the say app to do what you are trying to do. You can use just the playback app, with or without phrase macros:<br><br>&lt;action application=&quot;playback&quot; data=&quot;/path/to/cool_bdf_sound.wav&quot;/&gt;<br>
<br>or<br><br>&lt;action application=&quot;playback&quot; data=&quot;phrase:my_cool_phrase:arg1:arg2&quot;/&gt;<br><br>Then you need a phrase defined. I use conf/lang/en/ivr/custom.xml for my own phrases. E.g.:<br><br><font style="font-family:courier new,monospace" size="1">&lt;include&gt;<br>
  &lt;macro name=&quot;my_cool_phrase&quot;&gt;<br>    &lt;input pattern=&quot;(.*?):(.*?)&quot;&gt;<br>      &lt;match&gt;<br>        &lt;action function=&quot;play-file&quot; data=&quot;$1.wav&quot;/&gt;<br>        &lt;action function=&quot;sleep&quot; data=&quot;500&quot;/&gt;<br>
        &lt;action function=&quot;play-file&quot; data=&quot;$1.wav&quot;/&gt;<br>      &lt;/match&gt;<br>      &lt;nomatch&gt;<br>        &lt;action function=&quot;play-file&quot; data=&quot;/some/other/file.wav&quot;/&gt;<br>
      &lt;/nomatch&gt;<br>    &lt;/input&gt;<br>  &lt;/macro&gt;<br>&lt;/include&gt;<br></font><br>I hope that makes sense. See pages 115-120 in the bridge book for info on phrase macros and see pages 98,99 for info on the say application.<br>
<br>-MC<br>