RE: differentiate between InterdigitTimeOut and invalidcharacter

Hi Ravi,

               IDTO is mandatory becos we cant wait infinitely for the
user to type something. So I think this solution is not proper. Am I
wrong?

 

Karthik

 

-----Original Message-----
From: Ravi [mailto:raviraval@yahoo.com] 
Sent: Friday, June 18, 2004 8:15 PM
To: karthik_m@huawei.com; 'Deepa R'
Cc: www-voice@w3.org
Subject: RE: differentiate between InterdigitTimeOut and
invalidcharacter

 

Hi Karthik,

You can accept variable length of digits in your grammar and let the
post processing decide if the input was valid - in this case you wont
get nomatch for IDT. The nomatch event would be thrown only in case if
an invalid digit is entered.

 

Ravi.

Karthik <karthik_m@huawei.com> wrote:

Dear Deepa,

               Thanks for your reply. We have to differentiate because
if invalid char is pressed, I have to reprompt, or IDT then I may
terminate the session. Is there any other way to do this?

 

As part of your post processing (validating it against the active
grammars at that time, you can find out if the nomatch is because of an
invalid character (in this case the length of input collected will match
the expected length ONLY in case of fixed length grammars.) 

               >>> I cant understand this. Can you elaborate more on
this or provide me some pointers.

            

 

Thanks

Karthik M

            

 

 

-----Original Message-----
From: Deepa R [mailto:deepar_iyer@yahoo.com] 
Sent: Friday, June 18, 2004 11:21 AM
To: karthik_m@huawei.com
Subject: Re: differentiate between InterdigitTimeOut and
invalidcharacter

 

Only nomatch event gets generated. But then does it really make a
difference? 

How do you know that input collection is done and that you need not wait
for anymore input? 

Only because of IDT.

 Another way would be if you knew that you are expecting a fixed length
of input (say). This will depend upon the active grammar. If the grammar
is such that you can determine that a fixed length input is required
then you can say that input collection is over after the user enters the
input of expected length.

Suppose you have multiple grammars active, which are not of the fixed
length kind, then you don't know if input digit collection is over till
IDT. 

As part of your post processing (validating it against the active
grammars at that time, you can find out if the nomatch is because of an
invalid character (in this case the length of input collected will match
the expected length ONLY in case of fixed length grammars.) 

 



Karthik <karthik_m@huawei.com> wrote:

Hello all,

            In VXML, how can I differentiate whether nomatch event is
for IDTO or for Invalid character is entered

 

Thanks in Advance

M. Karthik

U-NICA 

 


  _____  


Do you Yahoo!?
Take
<http://us.rd.yahoo.com/mail/taglines/*http:/mobile.yahoo.com/maildemo>
Yahoo! Mail with you! Get it on your mobile phone.

  _____  

Do you Yahoo!?
Take
<http://us.rd.yahoo.com/mail/taglines/*http:/mobile.yahoo.com/maildemo>
Yahoo! Mail with you! Get it on your mobile phone.

Received on Friday, 18 June 2004 13:39:35 UTC