cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
603
Views
0
Helpful
1
Replies

VGrammar.setSpeechInline Issue

southernchic
Level 1
Level 1

We have a custom java voice element that uses the CVP Foundation Classes Java API to code an inline speech grammar as follows: 

VGrammar speechGrammar = VGrammar.getNew(pref);

speechGrammar.setSpeechInline(new String[] {"red", "pink", "orange"},

new String[] {"color", "color", "color"},

new String[] {"red", "pink", "orange"});

menuField.setGrammar(speechGrammar);

The problem is it seems to be ignoring the "names" argument because the generated VXML contains "null" instead of "color"

      <grammar mode="voice" version="1.0" root="ROOTVOICE">
        <rule id="ROOTVOICE" scope="public">
          <one-of>
            <item>
              red
              <tag><![CDATA[null='red';]]></tag>
            </item>
            <item>
              pink
              <tag><![CDATA[null='pink';]]></tag>
            </item>
            <item>
              orange
              <tag><![CDATA[null='orange';]]></tag>
            </item>
          </one-of>
        </rule>
      </grammar>

I do see the correct utterance coming back in the ApplicationDebugLogger, so it seems to "work" except for the name=null.

------ Request HTTP Arguments ------

Parameter Name = "utterance"  Parameter Value #0 = "red"
Parameter Name = "null"  Parameter Value #0 = "'red';"

Is the null a CVP bug, or am I doing something wrong ?

1 Reply 1

Geevarghese Cheria
Cisco Employee
Cisco Employee

Hi Betsy,

  For related info please check this froum discussion.- external grammar files with CVP 11?. Moving your question under CVP community for more visibility of support engineers.

Thanks and Regards,

Geevarghese