Share via


ISpLexicon::RemovePronunciation

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method removes a word and all its pronunciations from a user lexicon.

Syntax

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 Value

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

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpLexicon
SAPI Interfaces