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

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
pacview
Posts: 8
Joined: Tue Sep 26, 2006 12:09 pm

ASR problem with grammar - throwing nomatch event

Post 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,

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

IVR script written with a JSGF grammar

Post 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>
Last edited by support on Wed Jan 13, 2010 3:44 pm, edited 2 times in total.

pacview
Posts: 8
Joined: Tue Sep 26, 2006 12:09 pm

Post 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) ?

Post Reply