[asterisk-speech-rec] DTMF

Joshua Colp jcolp at digium.com
Thu Feb 22 09:56:00 MST 2007


David Brazier wrote:
> Thanks for the explanation.  So this means there is no point loading a 
> DTMF grammar in the SRE?

Pretty much.

> 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.

DTMF gets returned as a regular speech result from the dtmf grammar with 
a score of 1000.

You could do a check on that to see if they entered DTMF or did speech.

Joshua Colp
Software Developer
Digium, Inc.


More information about the asterisk-speech-rec mailing list