VoiceXML 2.1 Development Guide Home  |  Frameset Home

  Inline GSL Subgrammars  |  TOC  |  GSL Multislot Subgrammars  

Pre-built Subgrammar Library

Note: GSL syntax is not considered to be a W3C-compliant syntax for grammars, and the Nuance has discontinued support for GSL grammars in their most recent product offerings. Voxeo will continue to support GSL-specific markup for some time to come, but it is strongly suggested that new applications and their associated grammars leverage the SRGS + SISR grammar syntaxes instead of being reliant upon the deprecated GSL grammar format.

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
amaghazaji
9/24/2008 8:34 PM (EDT)
links dont work, example credit card date
jdyer
9/24/2008 9:03 PM (EDT)
Hi,

  Likes like an error on our end, I have already corrected this in the master documentation, so in the next build of our documentaitoin this has been addressed.  However below you will find the link to the prebuilt grammar library so you can go ahead and download it now.

http://community.voxeo.com/library/grammar/grammars.zip

Thanks for letting us know about this error!  Please let us know if we can be of any further assistance, we are always more then happy to assist!

Regards,

John D.
Customer Engineer
Voxeo Support
KoleS
2/7/2011 7:54 PM (EST)
When using yours us_money grammar as a result i get something like this:
Speech recognition result 0= | _interpretationconfidence=0.65 | _confidence=0.65 | vmlslot0=return([<dollars add(mul(100 $h) $u)> <cents $c>]) | _grammar_id=0 | _inputmode=voice | _utterance=two hundred four twelve | _inputconfidence=0.65

in my debbugger
how can i make the grammar to return the value of the spoken money amount

cheers from Poland
Dominik
voxeoJeffK
2/8/2011 4:36 AM (EST)
Hello Dominik,

The return will be filled into the field variable. So for

  <field name="F_1">

It will be in the variable "F_1" :

  <filled>
    You said <value expr="F_1"/>.
  </filled>

Regards,
Jeff Kustermann
Voxeo Support
KoleS
2/8/2011 3:35 PM (EST)
Hello JeffK thanks for the quick anwser.
Still it dosen't return the expected value. ;/

Speech recognition result 0= | _interpretationconfidence=0.7 | _confidence=0.7 | vmlslot0=return([<dollars $d>]) | _grammar_id=0 | _inputmode=voice | _utterance=fifty dollars | _inputconfidence=0.7
01480  f437  8:24:43 PM  XML(test, line 13): filled mode="any"
01481  f437  8:24:43 PM  XML(test, line 50): value expr="test"
01482  f437  8:24:43 PM  TTS: return([<dollars $d>])
RTSP MESSAGE(i): RTSP/1.0 200 OK Session: 13171a6afa2a6416e33b3ab5ef89bc8f-2093645453-8e60b0d0-0000143c-0000338f Cseq: 12 Content-Type: application/mrcp Content-Length: 34 MRCP/1.0 13282007 407 COMPLETE
01560  bc8f  8:28:07 PM  Got an MRCP error during speak. Throwing as a core exception com.mot.mrcp.MrcpException: Got an error MRCP Response code of 407: com.mot.mrcp.mrcpv1.client.messages.MrcpResponseMessage@4c0e53 at .... (and so one)

this shows my debbugger and here is the form that i'm using
<form id="test">
    <field name="test">
          <grammar type="text/gsl" src="/files/us_money.grammar#LIB_US_MONEY"/>
          <prompt>
              Say something.
          </prompt>
    </field>
    <filled mode="any">
          <value expr="test"/>
    </filled>
</form>

nothing happens afert the voice input the application think for a while and exits

I'm trying to build a mixed-initiative dialog but without the above code I'm stuck.
Any ideas how can I build it?

the mixed-initative would be smth like this (in gsl notation)

TRANSFER [

(?please transfer LIB_US_MONEY) {<action "mixed">}
( transfer ) {<action "transfer">}
etc.
]

the amout of the money i would extrac from the .utterance with an regexp or maybe i could return it to slot but so far I failed

edit: i'm using voxeo 9.0

Cheers
Dominik
MattHenry
2/9/2011 8:14 PM (EST)


Hello Dominick,


Bearing in mind that this grammar in particular is pretty ancient, I think that whats needed here is the inclusion of a new top-level rule:


NEW_TOP_LEVEL_RULE [

LIB_US_MONEY:z  {<yourFieldNameHere $z>}
]


~Matt

login
  Inline GSL Subgrammars  |  TOC  |  GSL Multislot Subgrammars  

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