[asterisk-speech-rec] Lumenvox - Problem with Currency Grammar
all at 800pbx.com
all at 800pbx.com
Tue Apr 10 12:16:01 MST 2007
Hello,
I have recently bought the starter kit to check out Lumenvox.
My ABN Grammar is very simple.
currency.gram
#ABNF 1.0;
language en-US;
mode voice;
root $main;
$main = (my | the) [phone] number is $<builtin:grammar/phone>;
//$main = (my | the) amount is $<builtin:grammar/currency>;
Extensions.conf
[getinput]
exten => s,1,SpeechActivateGrammar(currency)
exten => s,2,SpeechStart
exten => s,3,SpeechBackground(GP-DeliveryorTakeout)
exten => s,4,NoOp(SPEECH(status)=${SPEECH(status)})
exten => s,5,NoOp(SPEECH(spoke)=${SPEECH(spoke)})
exten => s,6,NoOp(SPEECH(results)=${SPEECH(results)})
exten => s,7,NoOp(SPEECH_SCORE(0)=${SPEECH_SCORE(0)})
exten => s,8,NoOp(SPEECH_TEXT(0)=${SPEECH_TEXT(0)})
exten => s,9,NoOp(SPEECH_GRAMMAR(0)=${SPEECH_GRAMMAR(0)})
exten => s,11,SpeechDeactivateGrammar(currency)
With builtin:grammar/phone, there is no problem. It returns string.
However when I replace phone with currency, it returns empty string
ALWAYS. I have tried all combinations and for some reason, this
grammar does not work.
Do I have to load the buildin grammars also. Is currency grammar
different or buggy?
BTW, the logs look normal.
Thanks for any pointer.
- Ebbie
More information about the asterisk-speech-rec
mailing list