ISpRecognizerLite::EnableItem

Send Feedback

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.

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 Values

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

Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: itspeech.h

See Also

ISpRecognizerLite

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.