Share via

SpeechRecognitionScenario Enum


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

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)


Dictation 1

A gramar constraint optimized for continuous recognition scenarios.

FormFilling 2

A grammar constraint optimized for form input recognition scenarios.

WebSearch 0

A grammar constraint optimized for web search recognition scenarios.


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.

Applies to

See also