<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 2:24 PM, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>></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 "play-file" <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's what I was getting at. You use the "say" app to let FS do the work of how to pronounce something, e.g.:<br>
<br><action application="say" data="en number pronounced 1234"/><br>Caller hears "one thousand, two hundred, thirty-four"<br><br><action application="say" data="en number iterated 1234"/><br>
Caller hears "one two three four"<br><br>You don'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><action application="playback" data="/path/to/cool_bdf_sound.wav"/><br>
<br>or<br><br><action application="playback" data="phrase:my_cool_phrase:arg1:arg2"/><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"><include><br>
<macro name="my_cool_phrase"><br> <input pattern="(.*?):(.*?)"><br> <match><br> <action function="play-file" data="$1.wav"/><br> <action function="sleep" data="500"/><br>
<action function="play-file" data="$1.wav"/><br> </match><br> <nomatch><br> <action function="play-file" data="/some/other/file.wav"/><br>
</nomatch><br> </input><br> </macro><br></include><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>