ISpRecognizerLite::Delete

Send Feedback

This method removes a speech sample from the system.

HRESULT  Delete (
  SPRECOGNITIONMETHOD eRM,
  SPTYPEHEADER* psth,
  IUnknown* pUnk
);

Parameters

  • eRM
    [in] Identifies which recognition method should be used.

  • psth
    [out][in] Pointer to information which identifies the sample.

    Recognition method SPTYPEHEADER type
    SPRM_CONTINUOUSDIGIT NULL or ignored.

    Delete performs DeleteAll in this case.

    SPRM_VOICETAG SPT_DWORD.
  • pUnk
    [in] Pointer to a client callback interface. Currently NULL or ignored.

Return Values

Value Description
S_OK Success
E_ABORT The operation was cancelled by a call to the CancelProcessing function.
E_ACCESSDENIED Unable to access stored training samples.
E_INVALIDARG The operation failed because there were one or more invalid arguments.
SPERR_ENGINE_BUSY The operation failed because the engine was busy servicing another request.
SPERR_NOT_FOUND The tag or key identifier that was passed in was not valid.
SPERR_SR_ENGINE_EXCEPTION General exception from the engine.
SPERR_UNINITIALIZED The operation failed because the engine was not properly initialized.

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

Remarks

In the continuous digit dialing case, the Delete method produces the same result as calling the DeleteAll method; that is, the entire library is deleted.

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.