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 ?