SpeechRecognitionScenario Enum
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.
Specifies the scenario used to optimize speech recognition for a web-service constraint (created through a SpeechRecognitionTopicConstraint object).
public enum class SpeechRecognitionScenario
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SpeechRecognitionScenario
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SpeechRecognitionScenario
var value = Windows.Media.SpeechRecognition.SpeechRecognitionScenario.webSearch
Public Enum SpeechRecognitionScenario
- Inheritance
-
SpeechRecognitionScenario
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
WebSearch | 0 | A grammar constraint optimized for web search recognition scenarios. |
Dictation | 1 | A gramar constraint optimized for continuous recognition scenarios. |
FormFilling | 2 | A grammar constraint optimized for form input recognition scenarios. |
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.