Share via


Note

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

DtmfRecognitionEngine.UnloadGrammar Method

Unloads the specified Grammar object from the DtmfRecognitionEngine instance.

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

Syntax

'Declaration
Public Sub UnloadGrammar ( _
    grammar As Grammar _
)
'Usage
Dim instance As DtmfRecognitionEngine
Dim grammar As Grammar

instance.UnloadGrammar(grammar)
public void UnloadGrammar(
    Grammar grammar
)

Parameters

Remarks

An ArgumentException is thrown if the specified Grammar object is not currently loaded in the DtmfRecognitionEngine instance.

See Also

Reference

DtmfRecognitionEngine Class

DtmfRecognitionEngine Members

Microsoft.Speech.Recognition Namespace