stabilityThreshold attribute

For JavaScript authors that do not make use of interim results, or only
want to show fewer and more stable interim results, the following
stabilityThreshold would allow the author to request this, which reduces
the bandwidth usage and the events fired (and thus also reduces compute and
power).  In addition, the stability attribute returned with interim results
would allow authors to process results according to their estimated
stability. For example, an author might choose to display final results in
black, fairly stable results in dark grey, and not very stable results in
light grey.

I propose the following:

Add to IDL for SpeechRecognitionResult
    readonly attribute float stability;

Add to 5.1.6 Speech Recognition Result definitions

stability
  The stability represents a numeric estimate between 0.0 and 1.0 of how
likely the recognition system is to change this interim result. A higher
number indicates the result is less likely to change.  This attribute is
not defined when the "final" attribute is true.

Add to IDL for SpeechRecognition (the top level)
    attribute float stabilityThreshold;

Add to 5.1.1 Speech Recognition Attributes definitions:

 stabilityThreshold
  This attribute controls how many interim results are returned. When set
to the value of 1.0, no interim results (only final results) will be
returned.  When set to 0.0, all interim results will be returned. Valid
values are in the range of 0.0 to 1.0 inclusive. The default value is 1.0.

/Glen Shires

Received on Thursday, 30 August 2012 17:56:53 UTC