ISpSREngine::LoadSLM (SAPI 5.4)

Microsoft Speech API 5.4

ISpSREngine::LoadSLM

ISpSREngine::LoadSLM instructs the engine to load a statistical language model (SLM) for dictation.

  
    HRESULT LoadSLM(
   void          *pvEngineGrammar,
   LPCWSTR       *pszTopicName
);

Parameters

  • pvEngineGrammar
    [in] The engine's grammar pointer, as returned from the OnCreateGrammar method.
  • pszTopicName
    [in, string] Null-terminated string that specifies a topic name. The default SLM should be loaded if the value of pszTopicName is NULL.

Return values

Value
S_OK
FAILED(hr)