<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN 
class=860032615-10102006><FONT size=2>I've set up the following dialplan logic 
to test the Asterisk/Lumenvox speech engine using a simple yes/no 
grammar.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN 
class=860032615-10102006><FONT size=2>If the SRE does not detect a valid 'yes' 
or 'no', I play a message and then loop back to try again.&nbsp; For some 
reason,</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN 
class=860032615-10102006><FONT size=2>when I loop back to the SpeechBackground 
command after the first time through, the audio from the "test-say-yes-or-no" 
</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN 
class=860032615-10102006><FONT size=2>file is not audible, although the 
</FONT></SPAN></SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN 
class=860032615-10102006><FONT size=2>CLI shows it playing.&nbsp;&nbsp;Any 
ideas?&nbsp; Thanks.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN 
class=860032615-10102006></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"></SPAN>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,1,Answer<BR>exten =&gt; 6000,n,SpeechCreate()<BR>exten =&gt; 
6000,n,SpeechLoadGrammar(yesno|/etc/asterisk/grammars/yesno.gram)<BR>exten =&gt; 
6000,n,SpeechActivateGrammar(yesno)<BR>exten =&gt; 
6000,n,SpeechStart()</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,n(ask),Wait(1)<BR>exten =&gt; 
6000,n,SpeechBackground(test-say-yes-or-no|3)</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,n,NoOp(SPEECH(status)=${SPEECH(status)})<BR>exten =&gt; 
6000,n,NoOp(SPEECH(spoke)=${SPEECH(spoke)})<BR>exten =&gt; 
6000,n,NoOp(SPEECH(results)=${SPEECH(results)})<BR>exten =&gt; 
6000,n,NoOp(SPEECH_SCORE(0)=${SPEECH_SCORE(0)})<BR>exten =&gt; 
6000,n,NoOp(SPEECH_TEXT(0)=${SPEECH_TEXT(0)})<BR>exten =&gt; 
6000,n,NoOp(SPEECH_GRAMMAR(0)=${SPEECH_GRAMMAR(0)})</SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,n,GotoIf($[${SPEECH(spoke)} = 0]?done)<BR>exten =&gt; 
6000,n,GotoIf($["${SPEECH_TEXT(0)}" = "yes"]?yes)<BR>exten =&gt; 
6000,n,GotoIf($["${SPEECH_TEXT(0)}" = "no"]?no)</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,n(bad),Wait(1)<BR>exten =&gt; 
6000,n,Playback(test-invalid-try-again)<BR>exten =&gt; 
6000,n,Goto(ask)</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,n(yes),Wait(1)<BR>exten =&gt; 6000,n,Playback(test-you-said-yes)<BR>exten 
=&gt; 6000,n,Goto(done)</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,n(no),Wait(1)<BR>exten =&gt; 6000,n,Playback(test-you-said-no)<BR>exten 
=&gt; 6000,n,Goto(done)</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">exten =&gt; 
6000,n(done),SpeechDeactivateGrammar(yesno)<BR>exten =&gt; 
6000,n,SpeechUnloadGrammar(yesno)<BR>exten =&gt; 6000,n,SpeechDestroy()<BR>exten 
=&gt; 6000,n,Hangup<BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"></SPAN>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"></SPAN>&nbsp;</DIV>
<DIV><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">_____________________________________________________________</SPAN> 
<BR><STRONG><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">A</SPAN></STRONG><STRONG><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">DAM </SPAN></STRONG><STRONG><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">S.</SPAN></STRONG><STRONG><SPAN 
style="FONT-FAMILY: Arial"> </SPAN></STRONG><STRONG><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">R</SPAN></STRONG><STRONG><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">OBINS, CCP</SPAN></STRONG><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Executive Vice President and 
CIO<BR><BR><STRONG><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">PharmaCentra, 
LLC</SPAN><BR></STRONG><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">5901B 
Peachtree Dunwoody Road, Suite 380</SPAN><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Atlanta, GA 30328</SPAN><BR><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Office:&nbsp;&nbsp;770.395.0088 
x2034</SPAN><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Mobile:&nbsp;&nbsp;770.855.1360</SPAN><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;770.395.0989</SPAN><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Email:&nbsp;&nbsp;&nbsp;&nbsp;<A 
href="mailto:arobins@pharmacentra.com">arobins@pharmacentra.com</A></SPAN><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Web:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A 
href="http://www.pharmacentra.com/">http://www.pharmacentra.com</A></SPAN><BR><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">_____________________________________________________________</SPAN> 
</SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>