Share via


ISpRecognizerLite::EnableItem

4/8/2010

This method allows the recognition of patterns to be enabled or disabled, which could potentially be useful, for example, to enable certain voice tags in certain contexts.

Syntax

HRESULT  EnableItem (
  SPRECOGNITIONMETHOD eRM,
  SPTYPEHEADER* psth,
  BOOL fEnable
);

Parameters

  • eRM
    [in] Identifies which recognition method should be used.
  • psth
    [out][in] Pointer to information that identifies the pattern.

    Recognition method SPTYPEHEADER type

    SPRM_CONTINUOUSDIGIT

    SPT_NULL or ignored

    Returns a global trained state.

    SPRM_VOICETAG

    SPT_DWORD

  • fEnable
    [in] Set to FALSE to disable recognition of the tag in the current context. Set to TRUE to enable it.

Return Value

Value Description

S_OK

Success

E_NOTIMPL

Not implemented.

SPERR_NOT_FOUND

The sample identified by psth is not available on the system.

Otherwise, it returns an appropriate failure code from the return code list.

Remarks

The default behavior of the lexicon is to have all trained words enabled for the current context. Also, after a word is newly trained, it is always in the enabled state.

Note

Please contact Microsoft before implementing this function.

Requirements

Header itspeech.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Smartphone 2002 and later

See Also

Reference

ISpRecognizerLite