VoiceXML 2.1 Development GuideHome  |  Frameset Home

  Inline GSL Subgrammars  |  TOC  |  GSL Multislot Subgrammars  

Pre-built Subgrammar Library

If you've done any grammars of significant size or complexity you have by now noticed that building and testing grammars can be time consuming. In our continuing efforts to make your life easier, Voxeo has a number of the more common complex subgrammars available for download, which handle the subjects listed below.




  ANNOTATIONS: EXISTING POSTS
DaveMorris
3/16/2006 1:35 PM (EST)
Has anybody tried to use the credit card expiration grammar?  The only way I can get it to work is by saying the full month name and the year, for example, "April 2006".  It does not seem to want to take "oh four oh six" as is common practice.

Dave
mikethompson
3/16/2006 5:13 PM (EST)
Hello Dave,

I have tested both of your utterances to work successfully with my code snippet.  You will find sample code below.  Make sure you speak as clearly as possible, as I spoke the utterance as "oh four oh six" with flawless results.

Cheers,
Mike Thompson
Voxeo Extreme Support

-----Sample Code-----

<?xml version="1.0" encoding="UTF-8"?>

<vxml version="2.1" xmlns:voxeo="http://community.voxeo.com/xmlns/vxml">


<form id="F1">
<field name="F_1">
  <grammar src="credit_card_expiration.grammar#VLIB_CREDIT_CARD_EXPIRATION" type="text/gsl"/>
<prompt>
  what is the credit card expiration date?
  </prompt>


  <filled>

    <log expr="'***** EXPIRATION =' + lastresult$.interpretation.choice"/>
    You said <value expr="F_1"/> dude.
    That is amazing

  </filled>
  </field>
  </form>



</vxml> 
22911
3/2/2008 5:11 PM (EST)
Has anyone used the military_alphabet.grammar?  If so, I would really appreciate any samples of how to use it as I am getting internal errors.

Thanks in advance!!!!!!!
22911
3/2/2008 5:16 PM (EST)
I should have mentioned this in the last message:  The error I am am getting on the military_alphabet.grammar is:

VoiceException:
    error.noresource
    MRCP Recognition Error

mikethompson
3/2/2008 6:22 PM (EST)
Hello,

The GSL grammar library we have has only been tested on VoiceCenter 5.5, so it may be possible Prophecy does not like some of the syntax in the grammar.  I might have a sample alphabet grammar you can use, but I will not have access to the directory until Monday.  As such, I will post back tomorrow with my findings.

Best,
Mike Thompson
Voxeo Corporation
mikethompson
3/4/2008 2:43 PM (EST)
Hello,

Attached you will find an Alphanumeric grammar coded in grXML format.  While it is not GSL, grXML is becoming the standard for VoiceXML, while GSL is on its way out.  As such, I recommend you familiarize yourself with grXML/SRGS grammars.  Also, this is not primed for words like alpha and bravo, but it would be easy to modify it as such.

Here's our tutorial section on grXML grammars:
http://docs.voxeo.com/voicexml/2.0/mot_appendixj.htm

Hope this helps,
Mike Thompson
Voxeo Corporation

login
  Inline GSL Subgrammars  |  TOC  |  GSL Multislot Subgrammars  

© 2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site