PureEngage On-Premises

Discussion Thread View
Expand all | Collapse all

VXML Grammer

  • 1.  VXML Grammer

    Posted 11-07-2019 03:24
    Hi Team,
    appreciate your support, as i want to create grammar for input block in java composer application,
    the grammar should accept digits as below schemes:

    - 123*12*458**
    - 445**34**345

    this is because the current builtin grammar not supporting the asterisk .


    Omar Elhawary

  • 2.  RE: VXML Grammer

    GCAP Member
    Posted 11-12-2019 15:31
    I think a grammar like the below should work with your requirements:

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

    <grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar"
    xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd"

    <rule id="myInput" scope="public">
    <tag>out = "";</tag>

    <item repeat="12-13">
    <ruleref uri="#r0to9" />
    <tag>out += rules.latest()</tag>


    <rule id="r0to9" scope="public">


    Jason McLennan
    Commonwealth Bank of Australia