We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Grammar Matching -

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
JumpTech
Posts: 5
Joined: Fri Nov 07, 2008 5:37 pm
Location: Minneapolis

Grammar Matching -

Post by JumpTech »

When prompting the consumer for information and providing a fairly detailed grammar file with said prompting...

Is there a means for the speech recognition engine to present a tone or wav file to the consumer while it matches the captured data against its grammar?

We have seen several seconds of pause while the engine matches the prompt with the grammar and were hoping we could alleviate this match time with something so the consumer does not get confused or feel odd about the pause (which in rare cases can last several seconds)

Thanks in advance.

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

Clarification needed for IVR issue with grammar

Post by support »

Hi,

Could you provide us with a context of IVR code that could give us more insight on this IVR issue?

After the IVR grammar is matched, are you playing a static prompt right afterwards? Is there any data being submitted to a database for matching? Please provide us with some more context so we can better help you debug this IVR issue.

Regards,
Plum Support
Last edited by support on Wed Feb 17, 2010 12:32 pm, edited 2 times in total.

JumpTech
Posts: 5
Joined: Fri Nov 07, 2008 5:37 pm
Location: Minneapolis

Post by JumpTech »

Below is a sample program we can use for this thread.

Sequence of events is as follows:
1) Prompt user for input
2) Recieve input from consumer
3) Match against grammar file
4) Results - Reprompt if timeout, reprompt if nomatch, or Speak result

We desire to provide a audio file feedback to the user while the system conducts step #3 above. Basically after we have received input from the customer and before final rendered result is given.

Is it possible that the fetchaudio property could be used in this case to provide some active feedback to the consumer?

Thanks is advance.

Code: Select all

<?xml version="1.0"?>
<vxml version="2.1"
 xmlns="http://www.w3.org/2001/vxml">

  <!-- sample for grammar match post to forums -->

  <form id="choose_team">
    <field name="team">

    <grammar type="application/srgs+xml" root="team" mode="voice">
        <rule id="team">
          <one-of>
            <item>
	      Arizona Cardinals
	      <tag>MarketId="Cardinals"</tag>
            </item>
            <item>
	      Atlanta Falcons
	      <tag>MarketId="Falcons"</tag>
            </item>
            <item>
	      Baltimore Ravens
	      <tag>MarketId="Ravens"</tag>
            </item>
            <item>
	      Buffalo Bills
	      <tag>MarketId="Bills"</tag>
            </item>
            <item>
	      Carolina Panthers
	      <tag>MarketId="Panthers"</tag>
            </item>
            <item>
	      Chicago Bears
	      <tag>MarketId="Bears"</tag>
            </item>
            <item>
	      Cincinnati Bengals
	      <tag>MarketId="Bengals"</tag>
            </item>
            <item>
	      Cleveland Browns
	      <tag>MarketId="Browns"</tag>
            </item>
            <item>
	      Dallas Cowboys
	      <tag>MarketId="Cowboys"</tag>
            </item>
            <item>
	      Denver Broncos
	      <tag>MarketId="Broncos"</tag>
            </item>
            <item>
	      Detroit Lions
	      <tag>MarketId="Lions"</tag>
            </item>
            <item>
	      Green Bay Packers
	      <tag>MarketId="Packers"</tag>
            </item>
            <item>
	      Houston Texans
	      <tag>MarketId="Texans"</tag>
            </item>
            <item>
	      Indianapolis Colts
	      <tag>MarketId="Colts"</tag>
            </item>
            <item>
	      Jacksonville Jaguars
	      <tag>MarketId="Jaguars"</tag>
            </item>
            <item>
	      Kansas City Chiefs
	      <tag>MarketId="Chiefs"</tag>
            </item>
            <item>
	      Miami Dolphins
	      <tag>MarketId="Dolphins"</tag>
            </item>
            <item>
	      Minnesota Vikings
	      <tag>MarketId="Vikings"</tag>
            </item>
            <item>
	      New England Patriots
	      <tag>MarketId="Patriots"</tag>
            </item>
            <item>
	      New Orleans Saints
	      <tag>MarketId="Saints"</tag>
            </item>
            <item>
	      New York Giants
	      <tag>MarketId="Giants"</tag>
            </item>
            <item>
	      New York Jets
	      <tag>MarketId="Jets"</tag>
            </item>
            <item>
	      Oakland Raiders
	      <tag>MarketId="Raiders"</tag>
            </item>
            <item>
	      Philadelphia Eagles
	      <tag>MarketId="Eagles"</tag>
            </item>
            <item>
	      Pittsburgh Steelers
	      <tag>MarketId="Steelers"</tag>
            </item>
            <item>
	      San Diego Chargers
	      <tag>MarketId="Chargers"</tag>
            </item>
            <item>
	      San Francisco 49ers
	      <tag>MarketId="49ers"</tag>
            </item>
            <item>
	      Seattle Seahawks
	      <tag>MarketId="Seahawks"</tag>
            </item>
            <item>
	      St. Louis Rams
	      <tag>MarketId="Rams"</tag>
            </item>
            <item>
	      Tampa Bay Buccaneers
	      <tag>MarketId="Buccaneers"</tag>
            </item>
            <item>
	      Tennessee Titans
	      <tag>MarketId="Titans"</tag>
            </item>
            <item>
	      Washington Redskins
	      <tag>MarketId="Redskins"</tag>
            </item>
          </one-of>
        </rule>
      </grammar>

    <prompt>
      Please say the team you want to match against.
      <!-- this is where the pause begins, and is waiting for the user to speak his/her team of choice -->
    </prompt>

    <catch event="nomatch" count="1">
      Sorry, I didn't get that
      <reprompt/>
    </catch>

    <catch event="nomatch" count="2">
      Sorry, I still didn't get that.
      <goto next="#choose_team"/>
    </catch>

    <catch event="noinput" count="1">
      Are you still there?
      <reprompt/>
    </catch>

    <filled>
      Match!
      <!-- this is where the pause ends since we have found a mtach -->
      <log>pre-value</log>

      You entered <value expr="team.MarketId"/>

      <log>post-value</log>
    </filled>
    </field>
  </form>
</vxml>

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

IVR script needed to fix grammar issue

Post by support »

Hi,

Sorry, but it isn't possible to have a fetchaudio while the IVR grammar is trying to do a match (step #3).

However, normally, it is unusual to have a match grammar time of more than 2 seconds for grammars. Are you experiencing a match time of more than 2 seconds for your IVR grammar after the user has entered an input? Is this behavior reproducible? This kind of behavior is unlikely for grammar matches and is usually reflective of something else within the IVR code.

If this is the case, then you can private message us your IVR script and IVR grammar together (if you're uncomfortable with sharing it on the forum) and we can take a look at it.

Regards,
Plum Support

Post Reply