MenuActivity.ConfirmationThreshold Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Gets or sets the confidence level below which confirmation is carried out.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<GlobalizedCategoryAttribute("SpeechCategory")> _
<DefaultValueAttribute(1)> _
<GlobalizedDescriptionAttribute("DialogActivityCommon_ConfirmationThreshold")> _
Public Property ConfirmationThreshold As Single
[GlobalizedCategoryAttribute("SpeechCategory")]
[DefaultValueAttribute(1)]
[GlobalizedDescriptionAttribute("DialogActivityCommon_ConfirmationThreshold")]
public float ConfirmationThreshold { get; set; }
Property Value
A Single whose value ranges from 0.0 to 1.0. The default value is 1.0, which means that confirmation always occurs.
Example
The following example creates a MenuActivity instance and sets a number of properties on the instance. In the highlighted line of code, ConfirmationThreshold is set to 0.8, which causes any response whose confidence level is 0.8 or less to be passed to the confirmation stage.
this.chooseSize = new Microsoft.SpeechServer.Dialog.MenuActivity();
this.chooseSize.CanBargeIn = true;
this.chooseSize.ConfirmationThreshold = 0.8F;
this.chooseSize.DataField = "";
this.chooseSize.DataMember = "";
this.chooseSize.DataSource = null;
this.chooseSize.CompleteTimeout = System.TimeSpan.Parse("00:00:01.5000000");
this.chooseSize.InitialSilenceTimeout = System.TimeSpan.Parse("00:00:01.5000000");
this.chooseSize.Name = "chooseSize";
this.chooseSize.SynonymsField = "";
this.chooseSize.UseDefaultGrammars = true;
this.chooseSize.ConfirmationTurnStarting += new System.EventHandler<Microsoft.SpeechServer.Dialog.TurnStartingEventArgs>(this.chooseSize_ConfirmationTurnStarting);
this.chooseSize.TurnStarting += new System.EventHandler<Microsoft.SpeechServer.Dialog.TurnStartingEventArgs>(this.chooseSize_TurnStarting);
this.Activities.Add(this.chooseSize);
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
MenuActivity Class
MenuActivity Members
Microsoft.SpeechServer.Dialog Namespace
MenuActivity.ConfirmationThresholdProperty Field