SpeechRecognitionVoiceCommandDefinitionConstraint SpeechRecognitionVoiceCommandDefinitionConstraint SpeechRecognitionVoiceCommandDefinitionConstraint SpeechRecognitionVoiceCommandDefinitionConstraint Class

Definition

A constraint for a SpeechRecognizer object based on a file.

public : sealed class SpeechRecognitionVoiceCommandDefinitionConstraint : ISpeechRecognitionConstraint, ISpeechRecognitionVoiceCommandDefinitionConstraintpublic sealed class SpeechRecognitionVoiceCommandDefinitionConstraint : ISpeechRecognitionConstraint, ISpeechRecognitionVoiceCommandDefinitionConstraintPublic NotInheritable Class SpeechRecognitionVoiceCommandDefinitionConstraint Implements ISpeechRecognitionConstraint, ISpeechRecognitionVoiceCommandDefinitionConstraint// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Access the SpeechRecognitionResult.Constraint property to obtain an instance of this class.

CompileConstraintsAsync must always be called before RecognizeAsync or RecognizeWithUIAsync, even if no constraints are specified in the Constraints property.

Properties

IsEnabled IsEnabled IsEnabled IsEnabled

Gets or sets whether the constraint can be used by the SpeechRecognizer object to perform recognition.

public : PlatForm::Boolean IsEnabled { get; set; }public bool IsEnabled { get; set; }Public ReadWrite Property IsEnabled As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

if a speech recognizer can perform recognition using the constraint; otherwise .

See Also

Probability Probability Probability Probability

Gets or sets the weighted value of the constraint.

public : SpeechRecognitionConstraintProbability Probability { get; set; }public SpeechRecognitionConstraintProbability Probability { get; set; }Public ReadWrite Property Probability As SpeechRecognitionConstraintProbability// You can use this property in JavaScript.
See Also

Tag Tag Tag Tag

Gets or sets a tag that can be useful for identifying the constraint.

public : PlatForm::String Tag { get; set; }public string Tag { get; set; }Public ReadWrite Property Tag As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

A string representing the tag.

See Also

Type Type Type Type

Gets the type of the constraint.

public : SpeechRecognitionConstraintType Type { get; }public SpeechRecognitionConstraintType Type { get; }Public ReadOnly Property Type As SpeechRecognitionConstraintType// You can use this property in JavaScript.
See Also

See Also