SpLexicon Interface (SAPI 5.4)

Microsoft Speech API 5.4

SpLexicon

The SpLexicon automation object provides access to lexicons. Lexicons contain information about words that can be recognized or spoken.

SAPI defines two types of lexicons. The first is the application lexicon. Application lexicons are the words that all applications can use. They are installed by speech-enabled applications and are read-only. As a result, the application lexicons may vary slightly among computers. The second type is the user lexicon. User lexicons store words specific to a speech user.

An SpLexicon object includes the user lexicon and all application lexicons available on the computer. Calls to SpLexicon methods may return data from several different lexicons.

The SpUnCompressedLexicon object represents a single application lexicon.

Automation Interface Elements

The SpLexicon automation object contains the following elements:

Properties
GenerationId Property
Methods
AddPronunciation Method
AddPronunciationByPhoneIds Method
GetGenerationChange Method
GetPronunciations Method
GetWords Method
RemovePronunciation Method
RemovePronunciationByPhoneIds Method