Microsoft Speech SDK
SAPI 5.1
ISpSREngine::LoadSLM
ISpSREngine::LoadSLM instructs the engine to load a statistical language model (SLM) for dictation.
HRESULT LoadSLM(
void *pvEngineGrammar,
const WCHAR *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 | Description |
---|---|
S_OK | Function completed successfully. |
FAILED(hr) | Appropriate error message. |