Page 1 of 1

ASR problem with grammar - throwing nomatch event

Posted: Thu Mar 29, 2007 1:35 pm
by pacview
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,

IVR script written with a JSGF grammar

Posted: Thu Mar 29, 2007 3:18 pm
by support
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>

Posted: Sat Apr 14, 2007 1:06 pm
by pacview
Thank you.

It works much better now, but sometimes still has promblems with different accents. Any suggestions to make it 100% accurate (may be with sensitivity settings) ?