SpeechRecognitionVoiceCommandDefinitionConstraint SpeechRecognitionVoiceCommandDefinitionConstraint SpeechRecognitionVoiceCommandDefinitionConstraint SpeechRecognitionVoiceCommandDefinitionConstraint SpeechRecognitionVoiceCommandDefinitionConstraint Class

Definition

A constraint for a SpeechRecognizer object based on a file.

public : sealed class SpeechRecognitionVoiceCommandDefinitionConstraint : ISpeechRecognitionConstraint
struct winrt::Windows::Media::SpeechRecognition::SpeechRecognitionVoiceCommandDefinitionConstraint : ISpeechRecognitionConstraint
public sealed class SpeechRecognitionVoiceCommandDefinitionConstraint : ISpeechRecognitionConstraint
Public NotInheritable Class SpeechRecognitionVoiceCommandDefinitionConstraint Implements ISpeechRecognitionConstraint
// This class does not provide a public constructor.
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 IsEnabled

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

Probability Probability Probability Probability Probability

Gets or sets the weighted value of the constraint.

Tag Tag Tag Tag Tag

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

Type Type Type Type Type

Gets the type of the constraint.

See also