SpeechRecognizer.SpeechRecognizer Constructor

Construct and returns a new instance of a SpeechRecognizer object.

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

public SpeechRecognizer ()
public SpeechRecognizer ()
public function SpeechRecognizer ()
Not applicable.

The example below shows the creation, initialization, and of a SpeechRecognizer object.

// Initializes the SystemRecognizer and loads sample grammars on form load.
private void Exerciser_Load(object sender, EventArgs eventArgs) {

// Initialize the DesktopRecognizer and event handlers.

_recognizer = new SpeechRecognizer();
_recognizer.PauseRecognizerOnRecognition = true;
// Disable recognition of grammars.
_recognizer.Enabled = false;


_recognizer.PauseRecognizerOnRecognition = true;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions