ISpeechRecoGrammar CmdLoadFromObject Method (SAPI 5.4)

Microsoft Speech API 5.4

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).

     ClassId As String,
     GrammarName As String,
     [LoadOption As SpeechLoadOption = SLOStatic]


  • 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