- From: Dan Burnett <dburnett@voxeo.com>
- Date: Sun, 13 Nov 2011 00:58:48 -0500
- To: Satish S <satish@google.com>
- Cc: public-xg-htmlspeech@w3.org
- Message-Id: <28DA173C-F24D-4F00-A771-219B005E620E@voxeo.com>
Actually, I didn't notice that you had moved the addGrammar* methods onto the new collection object itself. I agree that we need a new object for the collection and will do that, but I want to hear from others before I move the addGrammar* methods into that collection from the SpeechReco object/interface. -- dan On Nov 13, 2011, at 12:53 AM, Dan Burnett wrote: > 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:59:59 UTC