<!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.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV align=left><SPAN class=375045416-22022007><FONT face=Arial size=2>David,</FONT></SPAN></DIV>
<DIV align=left><SPAN class=375045416-22022007><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=375045416-22022007><FONT face=Arial size=2>The purpose of DTMF grammars is so that once the platform (in this case
Asterisk) recognizes DTMF, you can get semantic interpretation from the Engine
regardless of whether the user spoke or dialed. I.e. you can return the same
semantic interpretation to your application regardless of whether your user said
"One" or pressed 1. It sounds like this is what you would want for your
application -- this way all semantic interpretation is handled in grammars and
not by your application.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=375045416-22022007><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=375045416-22022007><FONT face=Arial size=2>I
am not sure how to pass recognized DTMF from Asterisk to the Engine for semantic
interpretation. Perhaps Josh or somebody else on the list is more familiar with
this?</FONT></SPAN></DIV>
<DIV align=left><SPAN class=375045416-22022007><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=375045416-22022007><!-- Converted from text/plain format -->
<P align=left><FONT face=Arial size=2>Stephen Keller<BR>LumenVox Technical
Support<BR>P: 877-977-0707, just say "Stephen Keller" or "Support"<BR>F:
858-707-7072<BR>support@LumenVox.com<BR>www.LumenVox.com<BR><BR>LumenVox<BR><BR>Tell
us what is important to you! Take our product development survey: </FONT><A href="http://www.lumenvox.com/survey/srDevelopment/index.asp"><FONT face=Arial size=2>http://www.LumenVox.com/survey/srDevelopment/index.asp</FONT></A><BR></P></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B>
asterisk-speech-rec-bounces@lists.digium.com
[mailto:asterisk-speech-rec-bounces@lists.digium.com] <B>On Behalf Of </B>David
Brazier<BR><B>Sent:</B> Thursday, February 22, 2007 8:23 AM<BR><B>To:</B> Use of
speech recognition in Asterisk<BR><B>Subject:</B> RE: [asterisk-speech-rec]
DTMF<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText99318>
<DIV><FONT face=Arial size=2>Joshua Colp wrote:<BR></FONT></DIV></DIV>
<DIV><FONT face=Arial size=2>> Using the newest version of the speech API
once a DTMF digit is received <BR>> then Asterisk will stop doing speech
recognition and switch strictly to <BR>> DTMF in itself. Once this happens
the SRE is no longer involved as it is <BR>> not the one who detects or
handles the DTMF. If everything is properly <BR>> setup then DTMF tones
should never reach the SRE. In the case where <BR>> you've got DTMF going
inband and you're not setup to process it inband, <BR>> then it would spill
over to the engine but that's the only case I can <BR>> think
of.<BR><BR>Thanks for the explanation. So this means there is no point
loading a DTMF grammar in the SRE?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm actually driving this via AGI. For my
current DTMF-based IVR, I use "STREAM FILE" and "WAIT FOR DIGIT", which both
allow me to get the digits(s) pressed. For the ASR version, I'm using
"EXEC" to call SpeechBackground, but I don't think that would return the digit
as a result. As the application logic is quite complex, I don't want to
handle DTMF in the dialplan in the traditional Asterisk IVR manner, so it
looks as though I'll have to abandon trying to
allow both speech and DTMF at the user's choice, and the
application will have to be in one mode or the other.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any suggestions?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>David</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>