error.grammar.inlined
Posted: Tue Jul 14, 2009 9:40 am
Hi,
I have written a Vxml file which runs fine on one server whose TTS is AT&T Nuance 1.4 and fails in another server whose TTS is Nuance RealSpeak 4 and gives "error.grammar.inlined" error .
My Vxml Looks like this :
<?xml version="1.0"?>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<vxml version="2.0" application="<s:url action='root'/>">
<property name="inputmodes" value="voice"/>
<property name="confidencelevel" value="0.25"/>
<form id="doctors_list_frm">
<property name="timeout" value="15s"/>
<field name="contactNumber">
<grammar type="application/x-jsgf" mode="voice">
(
<c:forEach items="${doctors}" var="doctor" varStatus="index1">
<c:out value="${doctor.providerName}"/>
{<c:out value="${doctor.providerPhone}"/>} |
</c:forEach>
repeat {repeat} |
main {welcomemenu}
)
</grammar>
<prompt bargein="true">
Please say the doctors name to call.
<c:forEach items="${doctors}" var="doctor" varStatus="index1">
Doctor <c:out value="${doctor.providerName}"/>
address <c:out value="${doctor.providerAddress}"/>,
phone number <c:out value="${doctor.providerPhone}"/>
</c:forEach>
Please say repeat to repeat the list.
Please say main to return to the main menu.
</prompt>
<filled>
<if cond="contactNumber=='repeat'">
<clear namelist="contactNumber"/>
<reprompt/>
<elseif cond="contactNumber=='welcomemenu'" />
<prompt>Returning to the main menu.</prompt>
<submit next="<s:url action='welcome'/>"/>
</if>
</filled>
<noinput>
I did not hear your response. Please speak louder or try holding the phone closer to
your mouth.
<reprompt/>
</noinput>
<nomatch>
Sorry, I can not understand you. Try speaking a little slower and more clearly.
<reprompt/>
</nomatch>
</field>
<!-- transfer to doctors's phone number -->
<transfer name="connectingDoctor" destexpr="'tel:+1' + contactNumber" connecttimeout="120s" bridge="true">
<prompt>
Now calling
<prosody volume="100.0" rate="medium"><say-as type="telephone">
<value expr="contactNumber"/>
</say-as>.
</prosody>
<prosody volume="100.0" rate="default"/>
</prompt>
</transfer>
</form>
</vxml>
any help regarding this is appreciated.
Regards,
I have written a Vxml file which runs fine on one server whose TTS is AT&T Nuance 1.4 and fails in another server whose TTS is Nuance RealSpeak 4 and gives "error.grammar.inlined" error .
My Vxml Looks like this :
<?xml version="1.0"?>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<vxml version="2.0" application="<s:url action='root'/>">
<property name="inputmodes" value="voice"/>
<property name="confidencelevel" value="0.25"/>
<form id="doctors_list_frm">
<property name="timeout" value="15s"/>
<field name="contactNumber">
<grammar type="application/x-jsgf" mode="voice">
(
<c:forEach items="${doctors}" var="doctor" varStatus="index1">
<c:out value="${doctor.providerName}"/>
{<c:out value="${doctor.providerPhone}"/>} |
</c:forEach>
repeat {repeat} |
main {welcomemenu}
)
</grammar>
<prompt bargein="true">
Please say the doctors name to call.
<c:forEach items="${doctors}" var="doctor" varStatus="index1">
Doctor <c:out value="${doctor.providerName}"/>
address <c:out value="${doctor.providerAddress}"/>,
phone number <c:out value="${doctor.providerPhone}"/>
</c:forEach>
Please say repeat to repeat the list.
Please say main to return to the main menu.
</prompt>
<filled>
<if cond="contactNumber=='repeat'">
<clear namelist="contactNumber"/>
<reprompt/>
<elseif cond="contactNumber=='welcomemenu'" />
<prompt>Returning to the main menu.</prompt>
<submit next="<s:url action='welcome'/>"/>
</if>
</filled>
<noinput>
I did not hear your response. Please speak louder or try holding the phone closer to
your mouth.
<reprompt/>
</noinput>
<nomatch>
Sorry, I can not understand you. Try speaking a little slower and more clearly.
<reprompt/>
</nomatch>
</field>
<!-- transfer to doctors's phone number -->
<transfer name="connectingDoctor" destexpr="'tel:+1' + contactNumber" connecttimeout="120s" bridge="true">
<prompt>
Now calling
<prosody volume="100.0" rate="medium"><say-as type="telephone">
<value expr="contactNumber"/>
</say-as>.
</prosody>
<prosody volume="100.0" rate="default"/>
</prompt>
</transfer>
</form>
</vxml>
any help regarding this is appreciated.
Regards,