Share via


ISpSREngine::LoadSLM

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method loads a statistical language model (SLM) for dictation.

Syntax

HRESULT LoadSLM(
  void* pvEngineGrammar,
  const WCHAR* pszTopicName
);

Parameters

  • pvEngineGrammar
    [in] Pointer to the grammar supported by the SR engine. The pointer is retrieved by a prior call to the ISpSREngine::OnCreateGrammar method.
  • pszTopicName
    [in] Pointer to a null-terminated string that specifies the SLM for a dictation topic. If this value is NULL, the engine loads the default SLM, for the standard dictation topic.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

FAILED(hr)

Appropriate error message.

Requirements

Header sapiddk.h, sapiddk.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpSREngine
SAPI Interfaces