SpeechRecognitionConstraintType
SpeechRecognitionConstraintType
SpeechRecognitionConstraintType
SpeechRecognitionConstraintType
Enum
Definition
Specifies the grammar definition constraint used for speech recognition.
public : enum class SpeechRecognitionConstraintTypepublic enum SpeechRecognitionConstraintTypePublic Enum SpeechRecognitionConstraintType// You can use this enum in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| Grammar Grammar Grammar Grammar | A constraint based on a Speech Recognition Grammar Specification (SRGS) grammar file. See SpeechRecognitionGrammarFileConstraint. |
| List List List List | A constraint based on a list of words or phrases. See SpeechRecognitionListConstraint. |
| Topic Topic Topic Topic | A constraint based on a dictation topic. See SpeechRecognitionTopicConstraint. |
| VoiceCommandDefinition VoiceCommandDefinition VoiceCommandDefinition VoiceCommandDefinition | A constraint based on a Voice Command Definition (VCD) file. See SpeechRecognitionVoiceCommandDefinitionConstraint. |
Remarks
Constraints, or grammars, define the spoken words and phrases that can be matched by the speech recognizer.
You can specify one of the pre-defined, web-service grammars (see SpeechRecognitionTopicConstraint ) or you can create your own custom grammar (see SpeechRecognitionGrammarFileConstraint, SpeechRecognitionListConstraint, and SpeechRecognitionVoiceCommandDefinitionConstraint ) that is installed with your app.
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.