<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {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";}
h1
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:24.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1401706601;
        mso-list-type:hybrid;
        mso-list-template-ids:-1252631232 483675988 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;
        mso-fareast-font-family:"Times New Roman";
        mso-bidi-font-family:Arial;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>&nbsp;The TTS interface is one that I designed
myself using Java.&nbsp; I just call the program with the command line parameters I
need.&nbsp; I basically designed it to work similar to Festival&#8217;s text2wave
utility.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>As for returning the file name, I don&#8217;t
know you can do it that way in AGI.&nbsp; Rather, I pass the file name into my
interface, so I know what the file name is before I create it.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>If you&#8217;re wanting to know what
parameters I pass into my custom app, it&#8217;s: <o:p></o:p></span></font></p>

<ul style='margin-top:0in' type=disc>
 <li class=MsoNormal style='color:blue;mso-list:l0 level1 lfo1'><font size=2
     color=blue face=Arial><span style='font-size:11.0pt;font-family:Arial'>stringToSpeak
     &#8211; What I want NeoSpeech to say <o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:blue;mso-list:l0 level1 lfo1'><font size=2
     color=blue face=Arial><span style='font-size:11.0pt;font-family:Arial'>languageId
     &#8211; The ID code of the language to use (see NeoSpeech documentation) <o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:blue;mso-list:l0 level1 lfo1'><font size=2
     color=blue face=Arial><span style='font-size:11.0pt;font-family:Arial'>voiceId
     &#8211; The ID code of the voice to be used (see NeoSpeech documentation)<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:blue;mso-list:l0 level1 lfo1'><font size=2
     color=blue face=Arial><span style='font-size:11.0pt;font-family:Arial'>outFileName
     &#8211; The name of the audio file to be created<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:blue;mso-list:l0 level1 lfo1'><font size=2
     color=blue face=Arial><span style='font-size:11.0pt;font-family:Arial'>logFile
     &#8211; Where I want debugging messages to be logged<o:p></o:p></span></font></li>
</ul>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>Other NeoSpeech variables (Volume, Speed,
Format etc) I have hard-coded.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'>One thing I should warn you about, the
Linux version of NeoSpeech always wants to write out to the &#8220;/usr/vt/result/&#8221;
directory.&nbsp; I don&#8217;t know if you&#8217;d run into the same thing on a
Windows machine.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>msp<br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, March 28, 2009
10:06 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users] How
to Integrate Neospeech with Asterisk</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<h1><b><font size=2 face="Times New Roman"><span style='font-size:10.0pt;
font-weight:normal'>Please let me know in brief, How the TTS interface work
with asterisk?</span></font></b><o:p></o:p></h1>

<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>&gt; I call that from Asterisk using AGI<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>So does calling it from AGI, return the converted autdio file?<br>
OR the audio files are generated well before, and calling from AGI will use
that pre-generated files?<br>
<br>
It will be great that calling NewSpeech from AGI, should return with created
wave file. Do you think is it possible with NeoSpeech. If yes let me know brief
working idea behind this.<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>