- From: Satish S <satish@google.com>
 - Date: Fri, 11 Nov 2011 14:30:42 +0000
 - To: Dan Burnett <dburnett@voxeo.com>
 - Cc: public-xg-htmlspeech@w3.org
 
Received on Friday, 11 November 2011 14:31:20 UTC
>
> 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