SpeechRecognitionEngine.UpdateRecognizerSetting Method (String, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
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
Available since 3.0
Return to top
Show: