Freigeben über


ConfirmThreshold Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the minimum level of recognition confidence necessary to mark an item as confirmed. Read/write.

Usage

ASP.NET markup: <speech:ApplicationControl ConfirmThreshold="..." />
Get value: Float = ApplicationControl.ConfirmThreshold;
Set value: ApplicationControl.ConfirmThreshold = Float;
Data type: Float
Required: No; Default: 1

Remarks

See QA.Answer.ConfirmThreshold.

The ConfirmThreshold gets or sets the minimum confidence level of recognition necessary to mark an item as confirmed. Values can range from 0-1. Default is 1. By default, confirmation is always performed. This property is passed to all the internal QA controls created by this control.

The control throws an exception for out-of-range values.

Example

The following example demonstrates the ConfirmThreshold property that is used in a Date Application Speech Control.

<form id="Form1" method="post" runat="server">
  ...
  <speech:date 
    id="Date1" 
    QuestionPrompt="quand est-ce que vous aimeriez voyager?" 
    DateContext="Future"
    AllowHolidays="True"
    AllowNumeralDates="True"
    AllowRelativeDates="True"
    DaySemanticItem="DaySemItem" 
    MonthSemanticItem="MonthSemItem"
    YearSemanticItem="YearSemItem" 
    BabbleTimeout="2500" InitialTimeout="2500"  MaxTimeout="5000"
    ConfirmThreshold="0.5" RejectThreshold="0.5" ConfirmRejectThreshold="0.6" 
    OnClientActive="MyClientActive"
    runat="server">
  </speech:date>
  ...
</form>

See Also

ApplicationControl Class | ApplicationControl Constructor | ApplicationControl Members | ApplicationControl Properties | ApplicationControl Methods | ApplicationControl Events | ApplicationControl Remarks