- From: Dan Burnett <dburnett@voxeo.com>
- Date: Sun, 13 Nov 2011 00:53:24 -0500
- To: Satish S <satish@google.com>
- Cc: public-xg-htmlspeech@w3.org
Received on Sunday, 13 November 2011 05:54:38 UTC
Agreed. I will apply this change when I convert the arrays to collections throughout.
-- dan
On Nov 11, 2011, at 9:30 AM, Satish S wrote:
> o API Issue 5 (http://bantha.org/~mbodell/speechxg/issuew5.html):
> Brought back the grammar/parameter functions. This involved uncommenting the functions/explanations, adding a new one for grammarString, and renaming and rewording appropriately.
>
> A minor/cosmetic suggestion - it would be cleaner to have a separate interface. See http://www.w3.org/TR/domcore/#domtokenlist for inspiration.
>
> interface SpeechGrammar {
> attribute DOMString src;
> attribute float weight;
> };
>
> interface SpeechGrammarList {
> readonly attribute unsigned long length;
> getter SpeechGrammar item(unsigned long index);
> void addGrammarUri(in DOMString src, optional float weight);
> void addGrammarString(in DOMString string, optional float weight);
> }
>
> interface SpeechReco {
> SpeechGrammarList grammars;
> ...
> }
>
> --
> Cheers
> Satish
Received on Sunday, 13 November 2011 05:54:38 UTC