Partager via


ISpRecoGrammar2::LoadCmdFromMemory2 (SAPI 5.3)

Microsoft Speech API 5.3

ISpRecoGrammar2::LoadCmdFromMemory2

ISpRecoGrammar2::LoadCmdFromMemory2 loads a compiled CFG binary from memory and extends the ISpRecoGrammar::LoadCmdFromMemory function.

  
    HRESULT LoadCmdFromMemory2(
   const SPBINARYGRAMMAR    *pGrammar,
   SPLOADOPTIONS             Options,
   LPCWSTR                   pszSharingUri,
   LPCWSTR                   pszBaseUri 
);

Parameters

  • pGrammar
    A pointer to the grammar in memory.
  • Options
    Flag of type SPLOADOPTIONS indicating whether the grammar will be modified dynamically.
  • pszSharingUri
    Indicates that it is a dynamic shared grammar. Other grammars in the same recognizer can reference this grammar at runtime using this URI.
  • pszBaseUri
    The base path that any relative rule references within the grammar are resolved against.

Return values

Value
S_OK
E_INVALIDARG
FAILED(hr)