[asterisk-speech-rec] DTMF Delay

Scott Higginbotham scotth at voicenet.com
Fri Mar 16 08:51:46 MST 2007


Interesting.

I modified the app_speech_utils.c file to reduce the DTMF timeout from 5
seconds to 1 second - the time it takes from the time a DTMF is pressed
till the next appropriate action is reduced, but still taking about 6-7
seconds longer than if speech is utilized to make your selection instead
of DTMF.

Is there any other time-out settings that may be hidden with code
somewhere?

Scott Higginbotham
Systems / Network Operations Manager
215.259.2185 or 1.800.835.5710 ext 2185
scotth at voicenet.com 
 

-----Original Message-----
From: asterisk-speech-rec-bounces at lists.digium.com
[mailto:asterisk-speech-rec-bounces at lists.digium.com] On Behalf Of jeff
quade
Sent: Thursday, March 15, 2007 1:18 PM
To: asterisk-speech-rec at lists.digium.com
Subject: RE: [asterisk-speech-rec] DTMF Delay

Hey-
The way dialplan command SpeechBackground(Sound File|Timeout) is written
there is ALWAYS a 5 second digit time-out-- AFTER a key is pressed. You
can see this in app_speech_utils.c at line 668.

The whole app_speech_utils.c DTMF capture is a bit wonky. The speech
engine does NOT interpret any DTMF--  app_speech_utils.c simply creates
a string of valid DTMF, and then populates speech->results AFTER the 5
second digit time-out.

This method of DTMF capture BYPASSES the speech engine AND subsequently
ALL semantic command interpretation from within the decoder-- this is
NOT in the docs.

Cheers-
jjq




>From: "Scott Higginbotham" <scotth at voicenet.com>
>Reply-To: Use of speech recognition in 
>Asterisk<asterisk-speech-rec at lists.digium.com>
>To: "Use of speech recognition in
>Asterisk"<asterisk-speech-rec at lists.digium.com>
>Subject: RE: [asterisk-speech-rec] DTMF Delay
>Date: Thu, 15 Mar 2007 12:11:00 -0400
>
>Anyone have any thoughts on the delay I'm experiencing?  Is there 
>anything I'm overlooking in the dial plan from what anyone can see?
>
>Scott Higginbotham
>Systems / Network Operations Manager
>215.259.2185 or 1.800.835.5710 ext 2185 scotth at voicenet.com
>
>-----Original Message-----
>From: asterisk-speech-rec-bounces at lists.digium.com
>[mailto:asterisk-speech-rec-bounces at lists.digium.com] On Behalf Of 
>Scott Higginbotham
>Sent: Sunday, March 11, 2007 8:40 PM
>To: asterisk-speech-rec at lists.digium.com
>Subject: [asterisk-speech-rec] DTMF Delay
>
>I've got an odd situation with DTMF selections being given a delay 
>compared to the responsiveness of a voice selected menu option.
>
>I load both grammars, one for selecting options 1-9 via Voice selection

>and one for DTMF selection so that the user can simply press 1-9 if 
>they don't like to speak the menu option.
>
>Both work; however selecting the menu option with DTMF causes a good 
>5-10 second delay before you are taken to the next context after 
>selecting your option, whereas speaking the command is almost 
>instantaneously taking you to the next context without the 5-10 second 
>delay.
>
>A snippet of my code looks like:
>
>exten => s,1,Playback(custom/default/welcome_0)
>exten => s,2,SpeechCreate(lumenvox)
>exten => s,3,SpeechActivateGrammar(numbers)
>exten => s,4,SpeechActivateGrammar(choicetone)
>exten => s,5,NoOp(Make it past grammar load) exten => s,n,SpeechStart 
>exten => s,n,SpeechBackground(custom/default/menu_main|3)
>exten => s,n,NoOP(${SPEECH_TEXT(0)})
>exten => s,n,Set(SELECTION=${SPEECH_TEXT(0)})
>exten => s,n,SpeechDeactivateGrammar(numbers)
>exten => s,n,SpeechDeactivateGrammar(choicetone)
>exten => s,n,SpeechDestroy
>exten => s,n,NoOp(Received a response of ${SELECTION}) exten => 
>s,n,GotoIf($["${SELECTION}" = "0"]?,3,1) exten => 
>s,n,GotoIf($["${SELECTION}" = "1"]?region-1,s,2) exten => 
>s,n,GotoIf($["${SELECTION}" = "2"]?region-2,s,2) exten => 
>s,n,GotoIf($["${SELECTION}" = "3"]?region-3,s,2) exten => 
>s,n,GotoIf($["${SELECTION}" = "4"]?region-4,s,2) exten => 
>s,n,GotoIf($["${SELECTION}" = "5"]?,3,1) exten => 
>s,n,GotoIf($["${SELECTION}" = "6"]?,3,1) exten => 
>s,n,GotoIf($["${SELECTION}" = "7"]?advanced,s,1) exten => 
>s,n,GotoIf($["${SELECTION}" = "8"]?,3,1) exten => 
>s,n,GotoIf($["${SELECTION}" = "9"]?,3,1) exten => 
>s,n,Playback(custom/default/no_response_1)
>exten => s,n,Wait(2)
>exten => s,n,Goto(new-caller-intro-nresp,s,1)
>exten => 1,1,Goto(region-1,s,2)
>exten => 3,1,Playback(invalid)
>exten => 3,2,Goto(new-caller-intro,s,1)
>
>Any thoughts?
>
>Scott Higginbotham
>Systems / Network Operations Manager
>215.259.2185 or 1.800.835.5710 ext 2185 scotth at voicenet.com 
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>asterisk-speech-rec mailing list
>To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-speech-rec
>
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>asterisk-speech-rec mailing list
>To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-speech-rec

_________________________________________________________________
Mortgage rates as low as 4.625% - Refinance $150,000 loan for $579 a
month. 
Intro*Terms
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&se
arch=mortgage_text_links_88_h27f6&disc=y&vers=743&s=4056&p=5117

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-speech-rec mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-speech-rec



More information about the asterisk-speech-rec mailing list