The ASR is throwing nomatch event for one of our menu options. There are only four options, and we have included all possible variations or versions, but still it doesn't recognize speech and throws nomatch event. Here is the code:
<?xml version='1.0'?>
<grammar root="ROOT" xml:lang="en-US" mode="voice">
<rule id="ROOT" scope="public">
<one-of>
<item>My Connections</item>
<item>My Connection</item>
<item>Connections</item>
<item>Connection</item>
<item>My</item>
<item>one</item>
<item>Invitations</item>
<item>Invitation</item>
<item>Invite</item>
<item>two</item>
<item>Favorites</item>
<item>Favorite</item>
<item>Fay vurits</item>
<item>Fay vurit</item>
<item>three</item>
<item>Profile</item>
<item>four</item>
</one-of>
</rule>
</grammar>
It always gets one, two, three, or four but misses Favorites, My Connections etc. Is this the right way to write the grammar or we should remove the variations so it has fewer options? Or there is a better way? Please advise.
Thanks,
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
ASR problem with grammar - throwing nomatch event
IVR script written with a JSGF grammar
Here's your same IVR script written with a JSGF grammar. It does the same thing, but it's slightly more readable and, instead of returning the hypothesis match as spelled in the <grammar> (e.g. "fay vurits"), it'll return the tag value in the curly braces:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<field name="asdf">
<prompt>Say 1, 2, 3, or 4. Or say my connection, invitation, favorites, or profile</prompt>
<grammar>
([my] connection|one) {connection} |
(invitation|two) {invitation} |
(favorite|three) {favorite} |
(profile|four) {profile}
</grammar>
<filled>
you said <value expr="asdf"/>
</filled>
</field>
</form>
</vxml>
Last edited by support on Wed Jan 13, 2010 3:44 pm, edited 2 times in total.