Compartir a través de


ISpSREngine::LoadSLM (Windows CE 5.0)

Send Feedback

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

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 Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
FAILED(hr) Appropriate error message.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.

See Also

ISpSREngine | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.