Genesys Engage on-premises

 View Only
Discussion Thread View
  • 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
    -**345457*45**

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

    Thanks,
    #Unsure/Other

    ------------------------------
    Omar Elhawary
    ------------------------------


  • 2.  RE: VXML Grammer

    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"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd"
    mode="dtmf"
    tag-format="semantics/1.0"
    root="myInput">

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

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


    </rule>

    <rule id="r0to9" scope="public">
    <one-of>
    <item>0</item>
    <item>1</item>
    <item>2</item>
    <item>3</item>
    <item>4</item>
    <item>5</item>
    <item>6</item>
    <item>7</item>
    <item>8</item>
    <item>9</item>
    <item>*</item>
    </one-of>
    </rule>

    </grammar>

    ------------------------------
    Jason McLennan
    Commonwealth Bank of Australia
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources