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

SpeechRecognitionEngine.UpdateRecognizerSetting Method (String, String)

Updates the specified speech recognition engine setting with the specified string value.

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

public void UpdateRecognizerSetting(
	string settingName,
	string updatedValue
)

Parameters

settingName
Type: System.String

The name of the setting to update.

updatedValue
Type: System.String

The new value for the setting.

ExceptionCondition
ArgumentNullException

settingName is null.

ArgumentException

settingName is the empty string ("").

KeyNotFoundException

The recognizer does not have a setting by that name.

With the exception of PersistedBackgroundAdaptation, property values set using the UpdateRecognizerSetting method remain in effect only for the current instance of SpeechRecognitionEngine, after which they revert to their default settings. See UpdateRecognizerSetting for descriptions of supported settings.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft