Udostępnij za pośrednictwem


Note

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

DtmfRecognitionEngine.LoadGrammar Method

Synchronously loads the specified Grammar object into the DtmfRecognitionEngine instance.

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

Syntax

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

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

Parameters

Remarks

The LoadGrammar(Grammar) method will block execution while the Grammar is being loaded. For instant return, use the LoadGrammarAsync(Grammar) method.

See Also

Reference

DtmfRecognitionEngine Class

DtmfRecognitionEngine Members

Microsoft.Speech.Recognition Namespace