- From: Rajesh N <rajeshn@huawei.com>
- Date: Fri, 16 Nov 2007 01:17:25 +0530
- To: www-voice@w3.org
- Message-id: <000001c827c0$59193f10$4518120a@china.huawei.com>
Hi, I have a doubt regarding the selection and queueing of prompts by FIA after the exectution of a catch element, as mentioned in section 5.3.6 of VoiceXML 2.0 specification. Please refer to the script below: <?xml version="1.0" encoding="UTF-8"?> <vxml version="2.1" xmlns=" <http://www.w3.org/2001/vxml> http://www.w3.org/2001/vxml" > <form> <property name="bargein" value="true"/> <field name="field1"> <grammar mode="dtmf" type="application/srgs"> <rule id="id1"> <one-of> <item>1</item> <item>2</item> <item>3</item> </one-of> </rule> </grammar> <prompt>For field1, Dial 1, 2 or 3</prompt> <filled>You pressed a valid digit for field1 </filled> </field> <field name="field2"> <grammar mode="dtmf" type="application/srgs"> <rule id="id"> <one-of> <item>5</item> <item>6</item> <item>7</item> </one-of> </rule> </grammar> <prompt>For field2, Dial 5, 6 or 7</prompt> <filled>You pressed a valid digit for field2 </filled> </field> <nomatch> Sorry, input digit does not match </nomatch> </form> </vxml> Suppose, while collecting input for the <field> field1, a nomatch occurs, and hence nomatch event is generated. The prompt in the catch handler (Sorry, input digit does not match) is queued, and the next iteration of FIA is started, where field1 is again selected. Since <reprompt> was not specified in the catch handler, the prompt "For field1, Dial 1, 2 or 3" is not selected and queued. So the user just hears "Sorry, input digit does not match". Say, this time, a proper input (digit 3) is provided. FIA proceeds to execute the <filled>, and queues the prompt "You pressed a valid digit for field1", and procceds to the next iteration of FIA, where field2 is selected. Here for field2, should the prompt "For field2, Dial 5, 6 or 7" be selected and queued for output by FIA? Since the catch does not have a <reprompt>, is the selection of the prompt disabled only for the FIA iteration only after catch. Or is it applicable to the FIA iterations within the current form? Thanks Rajesh
Received on Thursday, 15 November 2007 19:47:56 UTC