Compartir a través de


Reco Remarks

  Microsoft Speech Technologies Homepage

Specifies speech input resources and features, and provides management of cases when valid recognition results are not returned.

The Reco control must be placed within a QA control.

The Reco control must contain at least one Grammar control. To use more than one Grammar control, enclose the controls in a Grammars collection.

Client onreco and onnoreco events

The client-side onreco event is raised when user speech matches any active grammar rule or element. The client-side onnoreco event is raised only when all active grammar rules and elements fail to produce a match. Recognition of a single phrase in an utterance will trigger the onreco event, even if the rest of the utterance is unrecognizable. For this reason, the onreco and onnoreco events should not be used to determine if user speech matches or fails to match a particular grammar rule. To determine if a rule was matched, evaluate the state and value of the client-side SemanticItem object associated with the rule.

Alternate recognitions

The Speech Recognition (SR) engine can return more than one recognition of a phrase. The number of recognitions to be returned is specified by a Param tag that sets a value for nbest. The best recognition, that is, the recognition with the highest confidence factor, is always returned as the recognition. If alternates are specified, the recognitions with the next highest confidence factors are returned as alternate recognitions.

The number of alternates returned is always less than or equal to the value of nbest. If an nbest value is specified, the recognition result is always included with the alternates as the top-ranked alternate. By default nbest is off, which specifies that the SR engine should return one primary result and no alternates. For more information on alternate recognitions, see the topic on the SemanticItem client object.

Markup

<Reco properties >

   <Grammars>                   
      <speech:Grammar properties />
   </Grammars>
   
   <Params>
      <speech:Param Name="..." >value</speech:Param>
      ...
   </Params>
   
   <speech:RecordSound properties >
   </speech:RecordSound>
   
</Reco>

See Also

Reco Class | Reco Constructor | Reco Members | Reco Properties | Reco Methods | Reco Events