Please login or register to access secure site features.

Note: By continuing to use DevConnect Program Services you agree to our latest Registered Member Terms.

Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Avaya Orchestration Designer » External Alphanumeric grammar help   XML
 
Author Message
lmarrero@convergeone.com



Joined: 03/04/2021 00:21:50
Messages: 1
Offline

Hello,

I hope everyone is doing great. I'm looking for assistance with an external grammar I'm building to capture 6 characters alpha numeric. As the grammar stands right it works fine if the caller says 6 letters or 6 numbers but when I try to say something like A B C 1 2 3, it never understands me. We are using Lumenvox's ASR and running on AEP 7.2.3. Could it be that I'm missing something on my grammar syntax? Any assistance will be greatly appreciated!

 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" mode="voice" root="Letters" tag-format="semantics/1.0" version="1.0" xml:lang="en-us">
    <rule id="Column0" scope="private">
	<tag>out='';</tag>
        <one-of>
            <item>p<tag>out+="p"</tag>
            </item>
	    <item>"{p iy:p}"<tag>out+="p"</tag>
            </item>
            <item>h<tag>out+="h"</tag>
            </item>
	    <item>"{ey ch:h}"<tag>out+="h"</tag>
            </item>
            <item>j<tag>out+="j"</tag>
            </item>
	    <item>"{jh ey:j}"<tag>out+="j"</tag>
            </item>
            <item>k<tag>out+="k"</tag>
            </item>
	    <item>"{k ey:k}"<tag>out+="k"</tag>
            </item>
            <item>a<tag>out+="a"</tag>
            </item>
            <item>"{ax:a}"<tag>out+="a"</tag>
            </item>
	    <item>"{ey:a}"<tag>out+="a"</tag>
            </item>
	    <item>b<tag>out+="b"</tag>
            </item>
	    <item>"{b iy:b}"<tag>out+="b"</tag>
            </item>
            <item>c<tag>out+="c"</tag>
            </item>
	    <item>"{s iy:c}"<tag>out+="c"</tag>
            </item>
		<item>d<tag>out+="d"</tag>
            </item>
	    <item>"{d iy:d}"<tag>out+="d"</tag>
            </item>
            <item>e<tag>out+="e"</tag>
            </item>
	    <item>"{iy:e}"<tag>out+="e"</tag>
            </item>
            <item>f<tag>out+="f"</tag>
            </item>
	    <item>"{eh f:f}"<tag>out+="f"</tag>
            </item>
            <item>g<tag>out+="g"</tag>
            </item>
	    <item>"{jh iy:g}"<tag>out+="g"</tag>
            </item>
	    <item>i<tag>out+="i"</tag>
            </item>
	    <item>"{ay:i}"<tag>out+="i"</tag>
            </item>
            <item>l<tag>out+="l"</tag>
            </item>
	    <item>"{eh l:l}"<tag>out+="l"</tag>
            </item>
            <item>m<tag>out+="m"</tag>
            </item>
	    <item>"{eh m:m}"<tag>out+="m"</tag>
            </item>
            <item>n<tag>out+="n"</tag>
            </item>
	    <item>"{eh n:n}"<tag>out+="n"</tag>
            </item>
            <item>o<tag>out+="o"</tag>
            </item>
	    <item>"{ow:o}"<tag>out+="o"</tag>
            </item>
	    <item>q<tag>out+="q"</tag>
            </item>
	    <item>"{k y uw:q}"<tag>out+="q"</tag>
            </item>
            <item>r<tag>out+="r"</tag>
            </item>
	    <item>"{aa r:r}"<tag>out+="r"</tag>
            </item>
            <item>s<tag>out+="s"</tag>
            </item>
	    <item>"{eh s:s}"<tag>out+="s"</tag>
            </item>
            <item>t<tag>out+="t"</tag>
            </item>
	    <item>"{t iy:t}"<tag>out+="t"</tag>
            </item>
            <item>u<tag>out+="u"</tag>
            </item>
	    <item>"{y uw:u}"<tag>out+="u"</tag>
            </item>
	    <item>v<tag>out=+"v"</tag>
            </item>
	    <item>"{v iy:v}"<tag>out+="v"</tag>
            </item>
	    <item>w<tag>out+="w"</tag>
            </item>
	    <item>"{d ah b ax l y uw:w}"<tag>out+="w"</tag>
            </item>
	    <item>"{d ah b ax y uw:w}"<tag>out+="w"</tag>
            </item>
	    <item>x<tag>out=+"x"</tag>
            </item>
	    <item>"{eh k s:x}"<tag>out+="x"</tag>
            </item>
	    <item>y<tag>out=+"y"</tag>
            </item>
	    <item>"{w ay:y}"<tag>out+="y"</tag>
            </item>
	    <item>z<tag>out+="z"</tag>
            </item>
	    <item>"{z iy:z}"<tag>out+="z"</tag>
            </item>
	    <item>one<tag>out+="1"</tag>
            </item>
	    <item>"{w ah n}"<tag>out+="1"</tag>
            </item>
	    <item>two<tag>out+="2"</tag>
            </item>
            <item>"{t uw:2}"<tag>out+="2"</tag>
            </item>
	    <item>three<tag>out=+"3"</tag>
            </item>
	    <item>"{th r iy:3}"<tag>out=+"3"</tag>
            </item>
	    <item>four<tag>out+="4"</tag>
            </item>
            <item>"{f ao r:4}"<tag>out+="4"</tag>
            </item>
	    <item>five<tag>out+="5"</tag>
            </item>
            <item>"{f ay v:5}"<tag>out+="5"</tag>
            </item>
	    <item>"{s ih k s:6}"<tag>out+="6"</tag>
            </item>
            <item>six<tag>out+="6"</tag>
            </item>
	    <item>seven<tag>out+="7"</tag>
            </item>
	    <item>"{s eh v ax n:7)"<tag>out+="7"</tag>
            </item>
	    <item>eight<tag>out+="8"</tag>
            </item>
            <item>"{ey t:8}"<tag>out+="8"</tag>
            </item>
	    <item>nine<tag>out+="9"</tag>
            </item>
            <item>"{n ay n:9}"<tag>out+="9"</tag>
            </item>
	    <item>"{z ih r ow:0}"<tag>out+="0"</tag>
            </item>
		<item>0<tag>out+="0"</tag>
            </item>
		<item>1<tag>out+="1"</tag>
            </item>
		<item>2<tag>out+="2"</tag>
            </item>
		<item>3<tag>out+="3"</tag>
            </item>
		<item>4<tag>out+="4"</tag>
            </item>
		<item>5<tag>out+="5"</tag>
            </item>
		<item>6<tag>out+="6"</tag>
            </item>
		<item>7<tag>out+="7"</tag>
            </item>
		<item>8<tag>out+="8"</tag>
            </item>
		<item>9<tag>out+="9"</tag>
            </item>
        </one-of>
    </rule>
	<rule id="Letters" scope="public">
		<tag>out='';</tag>
		<item repeat="6">
			<ruleref uri="#Column0"/><tag>out+=rules.Column0</tag>
		</item>
    </rule>
</grammar>


Thanks in advance for any help that can be provided!
 
 
Go to: