input of letters and numbers
Posted: Tue Jul 12, 2016 6:41 am
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!
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!