Share via


ISpeechRecoGrammar CmdLoadFromObject Method (SAPI 5.3)

Microsoft Speech API 5.3

Interface: ISpeechRecoGrammar

CmdLoadFromObject Method

The CmdLoadFromObject method loads a speech grammar from a component object model (COM) object.

The COM object must be created from a Windows dynamic link library (DLL).

  
    ISpeechRecoGrammar.CmdLoadFromObject(
     ClassId As String,
     GrammarName As String,
     [LoadOption As SpeechLoadOption = SLOStatic]
)

Parameters

  • ClassId
    Specifies The reference class ID of the object containing the command.
  • GrammarName
    Specifies the GrammarName.
  • LoadOption
    [Optional] Specifies whether the grammar is to be loaded for static or dynamic use. The default is static.

Return Value

None.