ISpLexicon::RemovePronunciation (Windows CE 5.0)
This method removes a word and all its pronunciations from a user lexicon.
HRESULT RemovePronunciation(const WCHAR* pszWord,LANGID LangID,SPPARTOFSPEECH ePartOfSpeech,void* pvReserved);
Parameters
- pszWord
[in] Pointer to the word to remove. - LangID
[in] language identifier of the word. The speech user default will be used if LangID is omitted. - ePartOfSpeech
[in] Part of speech. Possible values are defined by the SPPARTOFSPEECH enumeration. - pvReserved
[in] Pointer to a reserved variable. This is required to be NULL.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One of the parameters is not valid. |
E_OUTOFMEMORY | Exceeded available memory. |
SPERR_NOT_IN_LEX | Word is not found in the lexicon. |
SPERR_APPLEX_READ_ONLY | Cannot remove a word from application lexicon. |
SPERR_UNINITIALIZED | Interface not initialized. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.
See Also
Send Feedback on this topic to the authors