[speechXG] parameter setting for the recognition object

On today's call we talked about the general process of setting parameters
for recognition. In my proposal
(http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Jun/0086.html)
I had suggested that we might want to pick a couple of very frequently set
parameters (e.g. grammar and language) and allow them to be set directly as
parameters of the "start recognition" method, as a type of convenience
syntax. We agreed during the call that this was not necessary, and agreed
that all the parameters should be explicitly set on the recognition object,
e.g. something like "recognizer.endpointdetection(true)". However, this
raised the question of what happens when parameters are set while a
recognition is in progress. Bjorn's suggestion was to have an
"updateParameters" method that is invoked after the parameter setting
function is called to actually cause the parameters to take effect on the
recognition object. Another option is to distinguish parameters that take
effect immediately, like changing the grammar, from parameters that take
effect only when the next recognition occurs (like maxnbest).
We also discussed setting multiple parameters and whether there should be a
way to set several parameters in one call, as in this example that Olli
typed into irc: setParameters({ param1: value, param2: value2}). This might
be convenient, but Bjorn pointed out that it isn't done in any HTML API's. 
I'm hoping to update my proposal and sent it out again next week, so any
discussion on the list in the meantime would be helpful. If anyone who was
on the call today has anything to add to this summary, that would be
helpful, too.
Debbie

Received on Thursday, 28 July 2011 18:18:31 UTC