Subject: Re: [Speechsc] Handling grammar definition errors

From: Dan Burnett <[email-masked]>
Date: Wed, 30 Aug 2006 08:29:05 -0700 (PDT)

This thread is now tracked via issues 101, 102, and
103 at http://www.softarmor.com/roundup/speechsc/.

-- Dan Burnett

--- "Carter, Jerry" <[email-masked]> wrote:

> It is worthwhile to review the reporting and
> handling of invalid grammars.
> Consider a recognize containing two invalid URIs and
> referencing two invalid
> grammars.  The message and responses might look
> something like this:
> 
>  
> 
>    C->S:MRCP/2.0 RECOGNIZE 543260
> 
>    Channel-Identifier:32AECB23433801@speechrecog
> 
>    Content-Type:text/uri-list
> 
>    Content-Length:???
> 
>  
> 
>    session:http://www.example.com/bad_uri_404.gxml
> 
>    session:http://www.example.com/bad_uri_408.gxml
> 
>    session:http://www.example.com/bad_grammar1.gxml
> 
>    session:http://www.example.com/bad_grammar2.gxml
> 
>  
> 
>    S->C:MRCP/2.0 543260 407 IN-PROGRESS
> 
>    Channel-Identifier:32AECB23433801@speechrecog
> 
>    Completion-Cause:009 uri resolution problem
> 
>    Failed-URI-Cause:404
> 
>   
> Failed-URI:http://www.example.com/bad_uri_404.gxml
> 
>  
> 
>    S->C:MRCP/2.0 543260 407 IN-PROGRESS
> 
>    Channel-Identifier:32AECB23433801@speechrecog
> 
>    Completion-Cause:009 uri resolution problem
> 
>    Failed-URI-Cause:408
> 
>   
> Failed-URI:http://www.example.com/bad_uri_408.gxml
> 
>  
> 
>    S->C:MRCP/2.0 543260 407 COMPLETE
> 
>    Channel-Identifier:32AECB23433801@speechrecog
> 
>    Completion-Cause:005 grammar violates schema
> 
>   
> Failed-URI:http://www.example.com/bad_grammar1.gxml
> 
>   
> Failed-URI:http://www.example.com/bad_grammar2.gxml
> 
>  
> 
> (1) Is there any benefit to having separate
> 'Failed-URI-Cause' and
> 'Failed-URI' messages?  These should be combined. 
> Then, the messages for
> the first two errors could also be merged.
> 
>  
> 
>    S->C:MRCP/2.0 543260 407 IN-PROGRESS
> 
>    Channel-Identifier:32AECB23433801@speechrecog
> 
>    Completion-Cause:009 uri resolution problem
> 
>   
> Failed-URI:http://www.example.com/bad_uri_404.gxml
> 404
> 
>   
> Failed-URI:http://www.example.com/bad_uri_408.gxml
> 408
> 
>  
> 
> (2) The specification does not dictate today whether
> a client must process
> all the grammars before RECOGNIZE / DEFINE-GRAMMAR
> are complete.  The MRCP
> specification should say this: RECOGNIZE MAY
> terminate after the first error
> but DEFINE-GRAMMAR SHOULD attempt to process the
> entire list of grammars.
> 
>  
> 
> (3) What is the difference between 004
> (grammar-load-failure) and 005
> (grammar-compilation-failure)?  Would a client ever
> care?  If the answer is
> no, then 004 should be retained and 005 eliminated
> since load is required
> and compilation is an implementation detail.
> 
>  
> 
> (4) More failure examples in the specification would
> be helpful.
> 
>  
> 
>  
> 
>  
> 
> > _______________________________________________
> Speechsc mailing list
> [email-masked]
> https://www1.ietf.org/mailman/listinfo/speechsc
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
Speechsc mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/speechsc