System speed
Posted: Tue Sep 23, 2008 12:06 pm
I'm not sure if this is a development issue or a platform issue. I am looking for a way to speed up the transition from one field to the next. Below is a sample of my code. The transition between the access code confirmation and the password field takes from 1 to 2 seconds. This seems to be the case with other field -> confirmation -> field transitions. Is there anything I can do to speed these up?
Thanks!
JC
<field name="AccessCode" type="digits?length=5">
<prompt>
Please enter your I.D. code followed by the pound sign.
</prompt>
<filled>
<goto nextitem="confirmID"/>
</filled>
<catch event="noinput nomatch" count="3">
<prompt bargein="false">
Please confirm your I.D. and try your call later.
</prompt>
<disconnect />
</catch>
<catch event="noinput nomatch">
<reprompt/>
</catch>
</field>
<subdialog name="confirmID" src="#confirm" cond="false">
<param name="user_input" expr="AccessCode"/>
<filled>
<if cond="confirmID.result==false">
<clear namelist="AccessCode"/>
</if>
</filled>
</subdialog>
<field name="Password" type="digits?minlength=2;maxlength=10">
<prompt bargein="true">
Please enter your password followed by the pound sign.
</prompt>
<filled>
<goto nextitem="login"/>
</filled>
<catch event="noinput nomatch" count="3">
Your entry was invalid. Goodbye.
<disconnect />
</catch>
</field>
...
</form>
<!-- Confirmations -->
<form id="confirm">
<property name="voicename" value="Jennifer"/>
<property name="inputmodes" value="dtmf"/>
<property name="termchar" value="#"/>
<property name="timeout" value="3s"/>
<property name="interdigittimeout" value="2s"/>
<property name="scriptmaxage" value="0s"/>
<property name="documentmaxage" value="0s"/>
<property name="sensitivity" value="0.0"/>
<var name="user_input"/>
<field name="yn" modal="true">
<grammar type="application/x-jsgf" mode="dtmf">
1 | 2
</grammar>
<prompt bargein="true" timeout="2s">
You entered:
<prosody volume="200.0" rate="-25%">
<say-as type="number:digits">
<value expr="user_input"/>
</say-as>
</prosody>.
<prosody volume="100.0" rate="default">
Press 1 to confirm.
Press 2 to re enter.
</prosody>
</prompt>
<filled>
<var name="result" expr="true"/>
<if cond="yn==2">
<assign name="result" expr="false"/>
</if>
<return namelist="result"/>
</filled>
</field>
<catch event="connection.disconnect">
<submit next="Process.aspx?p=Disconnect"
namelist="session.id"
method="post"
/>
</catch>
</form>
Thanks!
JC
<field name="AccessCode" type="digits?length=5">
<prompt>
Please enter your I.D. code followed by the pound sign.
</prompt>
<filled>
<goto nextitem="confirmID"/>
</filled>
<catch event="noinput nomatch" count="3">
<prompt bargein="false">
Please confirm your I.D. and try your call later.
</prompt>
<disconnect />
</catch>
<catch event="noinput nomatch">
<reprompt/>
</catch>
</field>
<subdialog name="confirmID" src="#confirm" cond="false">
<param name="user_input" expr="AccessCode"/>
<filled>
<if cond="confirmID.result==false">
<clear namelist="AccessCode"/>
</if>
</filled>
</subdialog>
<field name="Password" type="digits?minlength=2;maxlength=10">
<prompt bargein="true">
Please enter your password followed by the pound sign.
</prompt>
<filled>
<goto nextitem="login"/>
</filled>
<catch event="noinput nomatch" count="3">
Your entry was invalid. Goodbye.
<disconnect />
</catch>
</field>
...
</form>
<!-- Confirmations -->
<form id="confirm">
<property name="voicename" value="Jennifer"/>
<property name="inputmodes" value="dtmf"/>
<property name="termchar" value="#"/>
<property name="timeout" value="3s"/>
<property name="interdigittimeout" value="2s"/>
<property name="scriptmaxage" value="0s"/>
<property name="documentmaxage" value="0s"/>
<property name="sensitivity" value="0.0"/>
<var name="user_input"/>
<field name="yn" modal="true">
<grammar type="application/x-jsgf" mode="dtmf">
1 | 2
</grammar>
<prompt bargein="true" timeout="2s">
You entered:
<prosody volume="200.0" rate="-25%">
<say-as type="number:digits">
<value expr="user_input"/>
</say-as>
</prosody>.
<prosody volume="100.0" rate="default">
Press 1 to confirm.
Press 2 to re enter.
</prosody>
</prompt>
<filled>
<var name="result" expr="true"/>
<if cond="yn==2">
<assign name="result" expr="false"/>
</if>
<return namelist="result"/>
</filled>
</field>
<catch event="connection.disconnect">
<submit next="Process.aspx?p=Disconnect"
namelist="session.id"
method="post"
/>
</catch>
</form>