I'm willing to develop an IVR using AGI which will recognize the Voice input
from our cardholders. The basic functionality has been done but still need
some suggestion, recommendation to recognize the 16 digits card number, what
I want is:
1. Since I'm using en-US mode to make the system able to recognize only
digits from the caller, so my question is how can stick the digit's grammar
on 16 digits, like if less than 16, play some invalid message and same if
goes above 16?
Here is my current digits grammar:
#ABNF 1.0 UTF-8;
language en-US;
mode voice;
tag-format <lumenvox/1.0>;
There are a couple of ways you could do this. You could of course just
check the length of the output in your AGI app, but if you want to do
this within a grammar you just need to add a little bit of SISR
(basically JavaScript).
Here is a version of the digits grammar I threw together that should do
what you want. If it sees fewer than 16 digits, it returns "low" as the
semantic interpretation. Likewise it returns "high" if it sees more than
16.
#ABNF 1.0 UTF-8;
language en-US;
mode voice;
tag-format <lumenvox/1.0>;
I'm willing to develop an IVR using AGI which will recognize
the Voice input from our cardholders. The basic functionality
has been done but still need some suggestion, recommendation
to recognize the 16 digits card number, what I want is:
1. Since I'm using en-US mode to make the system able to
recognize only digits from the caller, so my question is how
can stick the digit's grammar on 16 digits, like if less than
16, play some invalid message and same if goes above 16?
Here is my current digits grammar:
#ABNF 1.0 UTF-8;
language en-US;
mode voice;
tag-format <lumenvox/1.0>;
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum