Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SpeechRecognitionEngine.UpdateRecognizerSetting Method (String, String)

Updates the specified setting for the SpeechRecognitionEngine with the specified integer value.

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

Syntax

'Declaration
Public Sub UpdateRecognizerSetting ( _
    settingName As String, _
    updatedValue As String _
)
'Usage
Dim instance As SpeechRecognitionEngine
Dim settingName As String
Dim updatedValue As String

instance.UpdateRecognizerSetting(settingName, _
    updatedValue)
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.

Exceptions

Exception Condition
ArgumentNullException

settingName is a null reference (Nothing in Visual Basic).

ArgumentException

settingName is the empty string ("").

KeyNotFoundException

The recognizer does not have a setting by that name.

Remarks

Property values set using the UpdateRecognizerSetting() methods remain in effect only for the current instance of SpeechRecognitionEngine, after which they revert to their default settings.

To return one of the recognizer's settings, use the QueryRecognizerSetting method. See UpdateRecognizerSetting for descriptions of supported settings.

See Also

Reference

SpeechRecognitionEngine Class

SpeechRecognitionEngine Members

UpdateRecognizerSetting Overload

Microsoft.Speech.Recognition Namespace