ISpRecognizerLite::Delete
4/8/2010
This method removes a speech sample from the system.
Syntax
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 Value
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
Header | itspeech.h |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Smartphone 2002 and later |