SpeechRecognizer.Constraints SpeechRecognizer.Constraints SpeechRecognizer.Constraints SpeechRecognizer.Constraints SpeechRecognizer.Constraints Property

Definition

Gets the collection of constraint objects currently added to the SpeechRecognizer object.

public : IVector<ISpeechRecognitionConstraint> Constraints { get; }
IVector<ISpeechRecognitionConstraint> Constraints();
public IList<ISpeechRecognitionConstraint> Constraints { get; }
Public ReadOnly Property Constraints As IList<ISpeechRecognitionConstraint>
var iList = speechRecognizer.constraints;

Property Value

IList<ISpeechRecognitionConstraint> IList<ISpeechRecognitionConstraint> IList<ISpeechRecognitionConstraint>

A collection of ISpeechRecognitionConstraint objects.

Valid constraint objects include:

Each speech recognizer can have one constraint collection. Only these combinations of constraints are valid:

Important

Call the SpeechRecognizer.CompileConstraintsAsync method to compile the constraints before starting the recognition process.

Remarks

To use web-service constraints, speech input and dictation support must be enabled in Settings by turning on the "Get to know me" option in the Settings -> Privacy -> Speech, inking, and typing page. See "Recognize speech input" in Speech recognition.

See also