Condividi tramite


ConfirmIfEqual Property

  Microsoft Speech Technologies Homepage

Gets or sets whether a user correction that matches the current value of the SemanticItem control is confirmed automatically. Read/write.

Usage

ASP.NET markup: <speech:QA ConfirmIfEqual="..." />
Get value: Boolean = QA.ConfirmIfEqual;
Set value: QA.ConfirmIfEqual = Boolean;
Data type: System.Boolean
Required: True

Remarks

If the ConfirmIfEqual property is True and a recognized correction is the same value as that already in the target SemanticItem, the State property of the SemanticItem is set to Confirmed. If ConfirmIfEqual is False and a recognized correction is the same value as that already in the SemanticItem, the item is marked as needing confirmation, depending on the values of recognition confidence and the ConfirmThreshold of the Answer control associated with the SemanticItem.

Example

<form id="Form1" method="post" runat="server">
  ...
  <Speech:QA ID="CfmToppingSize" FirstInitialTimeout="1000" runat="server" 
       XPathAcceptConfirms="/SML/Accept" AcceptRejectThreshold=".9"
       XPathDenyConfirms="/SML/Deny"     DenyRejectThreshold=".9"
       ConfirmIfEqual="True" >
    <Prompt PromptSelectFunction="CfmToppingSizePrompt" BargeIn="False" ID="Prompt1"></Prompt>
    <Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" Reject="0.5" ID="Reco1">
      <Grammars>
        <Speech:Grammar Src="Grammars/CfmToppingSize.grxml" ID="Grammar1"></Speech:Grammar>
      </Grammars>
    </Reco>
    <Confirms>
      <Speech:Answer ConfirmThreshold="1" SemanticItem="siTopping" ID="Topping_QACfmToppingSize" XPathTrigger="/SML/Correction/Topping"></Speech:Answer>
      <Speech:Answer ConfirmThreshold="1" SemanticItem="siSize" ID="Size_QACfmToppingSize" XPathTrigger="/SML/Correction/Size"></Speech:Answer>
    </Confirms>
  </Speech:QA>
  ...
</form>

See Also

QA Class | QA Constructor | QA Members | QA Properties | QA Methods | QA Events | QA Remarks | QA Client Object