VXML voice mode regarding
Posted: Fri Feb 27, 2009 1:00 pm
Please review the following VXML. Please note that as per the VXML, when there is no input from the user (DTMF), the control switches to “RepeatOffer” segment which is set to be in “voice” mode. On testing the VXML, the voice mode does not seem to recognize voice. I receive the call fine and the control seems to switch fine to “RepeatOffer” segment when I do not respond by DTMF, but when I say one when in voice mode, it does not seem to recognize it. Can you advise on the correctness of the attached VXML please?
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<property name="termtimeout" value="8s"/>
<property name="sensitivity" value="0.7"/>
<property name="interdigittimeout" value="30ms"/>
<property name="fetchtimeout" value="40s"/>
<form id="assign">
<field name="accept" type="boolean">
<prompt>
Hello. You are offered a web lead, press 1 to accept, or 2 to decline.
</prompt>
<filled>
<if cond="accept==false">
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=decline" method="post" namelist="message_reference" fetchtimeout="40s"/>
<else/>
<prompt>
You have pressed 1 to accept the lead. Please wait while we retrieve the details on the lead.
</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=accept" method="post" namelist="message_reference" fetchtimeout="40s"/>
</if>
</filled>
<nomatch>
Did not understand response.
<reprompt/>
</nomatch>
<noinput>
<goto next="#RepeatOffer"/>
</noinput>
</field>
</form>
<form id="RepeatOffer">
<field name="Repeat">
<grammar type="application/x-jsgf" mode="voice">( one | two )</grammar>
<prompt>No response. Switching to voice mode. You may now say one to accept or two to decline</prompt>
<filled>You entered <value expr="Repeat"/>
</filled>
<nomatch>Did not understand response<reprompt/>
</nomatch>
<noinput>No response.<reprompt/>
</noinput>
</field>
</form>
</vxml>
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<property name="termtimeout" value="8s"/>
<property name="sensitivity" value="0.7"/>
<property name="interdigittimeout" value="30ms"/>
<property name="fetchtimeout" value="40s"/>
<form id="assign">
<field name="accept" type="boolean">
<prompt>
Hello. You are offered a web lead, press 1 to accept, or 2 to decline.
</prompt>
<filled>
<if cond="accept==false">
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=decline" method="post" namelist="message_reference" fetchtimeout="40s"/>
<else/>
<prompt>
You have pressed 1 to accept the lead. Please wait while we retrieve the details on the lead.
</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=accept" method="post" namelist="message_reference" fetchtimeout="40s"/>
</if>
</filled>
<nomatch>
Did not understand response.
<reprompt/>
</nomatch>
<noinput>
<goto next="#RepeatOffer"/>
</noinput>
</field>
</form>
<form id="RepeatOffer">
<field name="Repeat">
<grammar type="application/x-jsgf" mode="voice">( one | two )</grammar>
<prompt>No response. Switching to voice mode. You may now say one to accept or two to decline</prompt>
<filled>You entered <value expr="Repeat"/>
</filled>
<nomatch>Did not understand response<reprompt/>
</nomatch>
<noinput>No response.<reprompt/>
</noinput>
</field>
</form>
</vxml>