Re: updated final report draft

>
> 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 Friday, 11 November 2011 14:31:20 UTC