SpeechRecognitionResult.Constraint Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the constraint used for the recognition result.
public:
property ISpeechRecognitionConstraint ^ Constraint { ISpeechRecognitionConstraint ^ get(); };
ISpeechRecognitionConstraint Constraint();
public ISpeechRecognitionConstraint Constraint { get; }
var iSpeechRecognitionConstraint = speechRecognitionResult.constraint;
Public ReadOnly Property Constraint As ISpeechRecognitionConstraint
Property Value
The constraint used for the recognition result. Null for remote recognition using predefined grammars (SpeechRecognitionTopicConstraint).
Remarks
CompileConstraintsAsync must be called before RecognizeAsync or RecognizeWithUIAsync, even if no constraints are specified in the Constraints property.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for