Grammar issue
Posted: Wed Jun 18, 2008 4:07 pm
Hello,
I am experiencing some problem with dtmf and voice input.
I need to have both inputs in the same field. but I am getting error.recognintion.nogrammar error.
code snippet is here.
<var name="custname" expr="'0'" />
<form id="getName">
<field name="name" >
<prompt bargein="false">
To confirm this payment
Please say your name.
To cancel the payment, Press 2
</prompt>
</field>
<filled>
<if cond="name$.inputmode=='voice'">
<assign name="custname" expr="name"/>
<goto next="#confName"/>
<else/>
<goto next="#getName"/>
</if>
</filled>
</form>
<form id="confName">
<field name="enter" type="boolean" >
<prompt>
<sentence>You entered <value expr="custname"/>.</sentence>
<sentence>If this is correct, Press 1.</sentence> Press 2 to enter the name again.
</prompt>
<filled>
<if cond="enter==false">
<clear namelist="custname" />
<goto next="#getName"/>
<else/>
<prompt>Success</prompt>
</if>
</filled>
</field>
</form>
What am I doing wrong here?
any help would be appreciated.
Thanks in advance.
I am experiencing some problem with dtmf and voice input.
I need to have both inputs in the same field. but I am getting error.recognintion.nogrammar error.
code snippet is here.
<var name="custname" expr="'0'" />
<form id="getName">
<field name="name" >
<prompt bargein="false">
To confirm this payment
Please say your name.
To cancel the payment, Press 2
</prompt>
</field>
<filled>
<if cond="name$.inputmode=='voice'">
<assign name="custname" expr="name"/>
<goto next="#confName"/>
<else/>
<goto next="#getName"/>
</if>
</filled>
</form>
<form id="confName">
<field name="enter" type="boolean" >
<prompt>
<sentence>You entered <value expr="custname"/>.</sentence>
<sentence>If this is correct, Press 1.</sentence> Press 2 to enter the name again.
</prompt>
<filled>
<if cond="enter==false">
<clear namelist="custname" />
<goto next="#getName"/>
<else/>
<prompt>Success</prompt>
</if>
</filled>
</field>
</form>
What am I doing wrong here?
any help would be appreciated.
Thanks in advance.