We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

input of letters and numbers

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
simplee
Posts: 9
Joined: Mon May 02, 2016 4:47 am

input of letters and numbers

Post by simplee »

Hi
we are trying to get input of an account number, containing letters and numbers.
according to our understanding the best way to do it is by voice recognition.

I'm not sure how to declare the grammar for it, I tried something like this:
<vxml version="2.0">
<property name="inputmodes" value="dtmf voice"/>
<property name="sensitivity" value="0.2"/>
<property name="confidencelevel" value="0.75"/>
<form id="main">
<property name="termchar" value="#"/>
<property name="termmaxdigits" value="true"/>
<property name="interdigittimeout" value="10s"/>
<field name="input">
<grammar type="application/x-jsgf" mode="voice">( 0 | 1 | 2 | 3 | 4 | 5 | a | b | c| d )+</grammar>
<prompt timeout="20s">
<voice name="mike">
please enter your account number, followed by the pound sign.
</voice>
</prompt>
</field>
.
.
.


but i still get an exception of "no match" when i say "a" letter or "b"
how am i suppose to declare the grammar?

thanks!

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: input of letters and numbers

Post by support »

Hi,

Because you want to use speech recognition rather than DTMF, you will want to take out the DTMF related properties and define the grammar as follows:

Code: Select all

<vxml version="2.0">
    <property name="sensitivity" value="0.2"/>
    <property name="confidencelevel" value="0.75"/>
    <form id="main">
        <field name="input">
            <grammar type="application/xjsgf" mode="voice">
                ( zero | one | two | three | four | five | a | b | c | d )+
            </grammar>
            <prompt>
                Please enter your account number.
            </prompt>
         </field>
     </form>
</vxml>
If you are repeatedly getting a "no match" error, you may want to try raising the sensitivity level or lowering the confidence level, but we do not recommend lowering the confidence level beyond 0.5.

Regards,
Plum Support

Post Reply