Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RecognizeMode Enumeration

Enumerates values of the recognition mode.

Namespace:  System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

public enum RecognizeMode

Member nameDescription
SingleSpecifies that recognition terminates after completion.
MultipleSpecifies that recognition does not terminate after completion.

This enumeration is used as an argument to RecognizeAsync(RecognizeMode).

The following example shows the implementation of a start/stop button for an application that has a graphical user interface and uses SpeechRecognitionEngine. Depending on the state of the application, RecognizeAsync(RecognizeMode) is called with either Single or Multiple when the button is clicked.

private void _startRecogButton_Click(object sender, EventArgs eventArgs) 

  // Toggle speech recognition on.
  if (_startRecogButton.Text == "Start Speech Recognition") 
    _startRecogButton.Text = "Stop Speech Recognition";
    if (_useMultiple) 

  // Toggle speech recognition off. 
    _startRecogButton.Text = "Start Speech Recognition";
    // Stop after current phrase is finished.
    if (_friendlyStop) 
    // Stop before current phrase is finished.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft