Export (0) Print
Expand All

SpeechRecognizer.PauseRecognizerOnRecognition Property

Gets or sets a value that indicates whether the shared recognizer pauses recognition operations while an application is handling a SpeechRecognized event.

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

public bool PauseRecognizerOnRecognition { get; set; }

Property Value

Type: System.Boolean
true if the shared recognizer waits to process input while any application is handling the SpeechRecognized event; otherwise, false.

Set this property to true, if within the SpeechRecognized event handler your application needs to change the state of the speech recognition service or change the loaded or enabled speech recognition grammars before the speech recognition service processes more input.

NoteNote

Setting the SpeechRecognized property to true causes each SpeechRecognized event handler in every application to block the Windows speech recognition service.

To synchronize the changes to the shared recognizer with your application state, use the RequestRecognizerUpdate method.

When PauseRecognizerOnRecognition is true, during the execution of the SpeechRecognized handler the speech recognition service pauses and buffers new audio input as it arrives. Once the SpeechRecognized event handler exits, the speech recognition service resumes recognition and starts processing information from its input buffer.

To enable or disable the speech recognition service, use the Enabled property.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft