Page 1 of 1

One question for the garmmar

Posted: Mon Sep 11, 2006 6:38 pm
by greg
Hi,

I have read the related materials no Plum site.

Have one question here, is there any avaiable garmmar sample I could leverage?

I would to catch the sentence pattern, like,
"You account amount is xx dollars xx cents"
and,
"Please pay xx dollars xx cents"

Thanks.
greg

link for IVR built-in grammars as well as text to speech

Posted: Mon Sep 11, 2006 6:50 pm
by support
Hello,

Are you asking about how to generate text to speech, or how to collect input via speech recognition? It is not very clear from your post. If you are new to VoiceXML we recommend going through the VoiceXML Tutorial. That will guide you on how to use some of the built-in IVR grammars as well as text to speech on a dynamically generated page.

Regards,
Plum Support

Posted: Mon Sep 11, 2006 6:56 pm
by greg
I am talking about the speech recognition.

I know need to come up with some customized grammar, but can you share some infor here?

Thanks.
greg

simple IVR example using custom and builtin grammars

Posted: Tue Sep 12, 2006 8:09 am
by support
Hello,

Your original question does not really make much sense. You should be providing the user with more direct questions and look for specific responses. There are two means of supporting speech recognition, using one of the IVR built-in grammars (digits, numbers, dates, currency etc) or by writing your own IVR grammars. Writing you own custom IVR grammar can range from a list of words that can be spoken up to extremely advanced lists of every city/state combination. Here is a more simple IVR example using custom and builtin IVR grammars:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.1">

<form>
   <!-- THIS FIELD USES A CUSTOM GRAMMAR -->
   <field name="main">
      <grammar type="application/x-jsgf">(donation|balance|operator)</grammar>
      <prompt>Please say one of the following options.  donation, balance or operator.</prompt>
      <filled>
         <if cond="main == 'donation'">
            <goto next="#donation"/>
         <elseif cond="main == 'balance'"/>
            <!-- TODO: handle balance request -->
         <else/>
            <!-- TODO: handle operator request -->
         </if>
      </filled>
   </field>
</form>

<form id="donation">
   <!-- THIS FIELD USES THE BUILT-IN TYPE CURRENCY -->
   <field name="amount" type="currency">
      <prompt>Please say the amount of money you would like to donate.</prompt>
      <filled>
            <prompt>
                  Thank you for your donation of <say-as type="currency"><value expr="amount"/></say-as>.
            </prompt>
      </filled>
   </field>
</form>

</vxml>
Regards,
Plum Support

Posted: Mon Sep 18, 2006 5:11 pm
by greg
Hi,

Thanks for the detailed response.

Based on the example when asking people to say the amount of money want to donate, I expect people would say in various of pattern, such as "I would like to donate $xx dollars and $xx cents",
or "how about $xx and $xx", or "total would be $xx dollars and $xx cent", or simply "$xx dollars and #xx cents"

For the accuracy purpose, is there any approach ( such as specila grammar) to help?

Sorry, I am new to the voice recognition field.

Best,
Greg

provide direct prompts in IVR applications

Posted: Tue Sep 19, 2006 8:13 am
by support
Hello,

No, the best approach is to use directed prompts with examples. Ask them specifically for a dollar amount. If you attempt to perform open ended speech recognition with your IVR application, you will have to come up with every word a user could possilby say otherwise you will end up with a nomatch case.

Providing directed prompts indicates to the user how they should be providing input to you. Open ended styles are usually problematic because most people are not confident that a speech recongition system will hear what they say in a free form sentence.

Regards,
Plum Support