<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier, monaco, monospace, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Also to follow up, I used this imaginary api to design an imaginary high level counterpart for configuring prase flow from the xml registry:</DIV>
<DIV> </DIV>
<DIV>see:</DIV>
<DIV> </DIV>
<DIV><A href="http://www.freeswitch.org/eg/say.xml">http://www.freeswitch.org/eg/say.xml</A></DIV>
<DIV> </DIV>
<DIV>a working draft on a way to use the config registry to build phrases</DIV>
<DIV>by stringing together instructions in xml so you can call them from your ivr (voicemail etc)</DIV>
<DIV> </DIV>
<DIV>like in C</DIV>
<DIV> </DIV>
<DIV>switch_channel_set_variable(channel, "language", "en");</DIV>
<DIV>switch_core_session_execute_macro(session, "msgcount", 12);</DIV>
<DIV> </DIV>
<DIV>something like that...</DIV>
<DIV> </DIV>
<DIV>While it's imaginary it's much easier to code and change it around so provide feedback now =D</DIV>
<DIV> </DIV>
<DIV><BR> </DIV>
<DIV>Anthony Minessale II<BR><BR>FreeSWITCH http://www.freeswitch.org/<BR>ClueCon http://www.cluecon.com/<BR><BR>AIM: anthm<BR>MSN:anthony_minessale@hotmail.com<BR>JABBER:anthony.minessale@gmail.com<BR>IRC: irc.freenode.net #freeswitch</DIV>
<DIV><BR>FreeSWITCH Developer Conference<BR>sip:888@66.250.68.194<BR>iax:guest@66.250.68.194/888<BR>googletalk:freeswitch@gmail.com<BR>pstn:213-799-1400</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: courier, monaco, monospace, sans-serif"><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Anthony Minessale <anthmct@yahoo.com><BR>To: freeswitch-users@lists.freeswitch.org<BR>Sent: Sunday, December 17, 2006 4:21:19 PM<BR>Subject: Re: [Freeswitch-users] [Freeswitch-dev] C SAY API<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: courier, monaco, monospace, sans-serif">
<DIV></DIV>
<DIV>pronounced would be like</DIV>
<DIV>for 1400</DIV>
<DIV> </DIV>
<DIV>pronounced would be:</DIV>
<DIV> </DIV>
<DIV>one thousand, four hundred<BR></DIV>
<DIV>iterated would be:</DIV>
<DIV> </DIV>
<DIV>one, four, zero, zero</DIV>
<DIV> </DIV>
<DIV>this could also possibly apply to dates etc</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Anthony Minessale II<BR><BR>FreeSWITCH http://www.freeswitch.org/<BR>ClueCon http://www.cluecon.com/<BR><BR>AIM: anthm<BR>MSN:anthony_minessale@hotmail.com<BR>JABBER:anthony.minessale@gmail.com<BR>IRC: irc.freenode.net #freeswitch</DIV>
<DIV><BR>FreeSWITCH Developer Conference<BR>sip:888@66.250.68.194<BR>iax:guest@66.250.68.194/888<BR>googletalk:freeswitch@gmail.com<BR>pstn:213-799-1400</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: courier, monaco, monospace, sans-serif"><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Nikolay Kolev <me@nikolay.com><BR>To: freeswitch-dev@lists.freeswitch.org; freeswitch-users@lists.freeswitch.org<BR>Sent: Saturday, December 16, 2006 6:47:44 PM<BR>Subject: Re: [Freeswitch-users] [Freeswitch-dev] C SAY API<BR><BR>
<STYLE>
<!--
_filtered {font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 4;}
_filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
text-decoration:underline;}
span.EmailStyle17
        {
font-family:Arial;
color:navy;}
_filtered {
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {}
-->
</STYLE>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The idea is great!</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">OpenPBX seems to have one something similar, but it¢s unfortunately GPL.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">BTW, SSM_ITTERATED is misspelled. What would be the difference between SSM_ITERATED and SSM_PRONOUNCED?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Nikolay Kolev</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Anthony Minessale [mailto:anthmct@yahoo.com] <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, December 15, 2006 3:09 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> freeswitch-dev@lists.freeswitch.org ; freeswitch-users@lists.freeswitch.org<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Freeswitch-dev] C SAY API</SPAN></FONT><SPAN lang=EN-US></SPAN></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></P>
<DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">Hi,</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">I'm working on a muiti-lingual say api for ivr programmers to be able </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">to generate audio for saying numbers, counting items or expressing amounts of things such as currency. I'd like some input from anyone who has some ideas</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">on how to make sure we cover all bases.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">The basic idea is that we will have an api where each new language/implementation would provide it's own version of this function.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">switch_status_t say(char *tosay,<BR> switch_say_gender_t gender,<BR> switch_say_type_t type,<BR> switch_say_method_t method,<BR> switch_input_callback_function_t dtmf_callback,<BR> void *buf,<BR> uint32_t
buflen);</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">The enums are described in <A href="http://www.freeswitch.org/eg/say_api.c" target=_blank rel=nofollow>http://www.freeswitch.org/eg/say_api.c</A></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">the idea would be something like </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">switch_say_handle_t *en;</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">en = switch_say_load("en");</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">switch_ivr_play_file(session, NULL, "/sounds/youhave.wav", NULL, NULL, NULL, 0);</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">en->say("1000", SSG_ANY, SSM_PRONOUNCED, SST_MESSAGES, NULL, NULL, 0);</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">switch_ivr_play_file(session, NULL, "/sounds/msgs.wav", NULL, NULL, NULL, 0);</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"><BR> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">Thoughts?</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier">Anthony Minessale</SPAN></FONT><FONT face=Courier><SPAN style="FONT-FAMILY: Courier"> II<BR><BR>FreeSWITCH http://www.freeswitch.org/<BR>ClueCon http://www.cluecon.com/<BR><BR>AIM: anthm<BR>MSN:anthony_minessale@hotmail.com<BR>JABBER:anthony.minessale@gmail.com<BR>IRC: irc.freenode.net #freeswitch</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Courier size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Courier"><BR>FreeSWITCH Developer Conference<BR>sip:888@66.250.68.194<BR>iax:guest@66.250.68.194/888<BR>googletalk:freeswitch@gmail.com<BR>pstn:213-799-1400</SPAN></FONT></P></DIV></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR>__________________________________________________<BR>Do You Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around <BR>http://mail.yahoo.com </SPAN></FONT></P></DIV>
<DIV>_______________________________________________<BR>Freeswitch-users mailing list<BR>Freeswitch-users@lists.freeswitch.org<BR><A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target=_blank rel=nofollow>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target=_blank rel=nofollow>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A href="http://www.freeswitch.org/" target=_blank rel=nofollow>http://www.freeswitch.org</A></DIV></DIV><BR></DIV></DIV><BR>__________________________________________________<BR>Do You Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around <BR>http://mail.yahoo.com
<DIV>_______________________________________________<BR>Freeswitch-users mailing list<BR>Freeswitch-users@lists.freeswitch.org<BR><A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A href="http://www.freeswitch.org/" target=_blank>http://www.freeswitch.org</A></DIV></DIV><BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>