Prompting wrong value
Posted: Mon May 19, 2008 1:05 pm
Below is my simple built-in grammar that will only accept state UTAH as valid input. However, when I say “NEW YORK” it prompts wrong value as “UTAH” rather than “NOMATCH” catch event. So far, I have problem with “NEW YORK” as it is being recognize as “UTAH”.
<?xml version="1.0"?>
<vxml version="2.0">
<property name="sensitivity" value="0.3"/>
<property name="confidencelevel" value="0.75"/>
<form id="mainmenu">
<field name="usstate">
<grammar type="application/x-jsgf" mode="voice">
utah
</grammar>
<prompt bargein="false">
say your state
</prompt>
<filled>
<prompt>
you say <value expr="usstate"/>
</prompt>
</filled>
</field>
</form>
</vxml>
<?xml version="1.0"?>
<vxml version="2.0">
<property name="sensitivity" value="0.3"/>
<property name="confidencelevel" value="0.75"/>
<form id="mainmenu">
<field name="usstate">
<grammar type="application/x-jsgf" mode="voice">
utah
</grammar>
<prompt bargein="false">
say your state
</prompt>
<filled>
<prompt>
you say <value expr="usstate"/>
</prompt>
</filled>
</field>
</form>
</vxml>