ISpShortcut::AddShortcut (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

ISpShortcut::AddShortcut

ISpShortcut::AddShortcut adds a user shortcut (that is, a lexicon that maps a spoken term to an expanded printed term).

HRESULT AddShortcut(
   LPCWSTR            pszDisplay,
   LANGID             LangID,
   LPCWSTR            pszSpoken, 
   SPSHORTCUTTYPE     shType
);

Parameters

pszDisplay
The text to be displayed when the shortcut is spoken.
LangID
The language ID of the shortcut (0 equals default).
pszSpoken
The text the recognizer should listen for.
shType
The type of shortcut.

Return values

Value Description
S_OK Function completed successfully.
E_INVALIDARG The utterance is empty or greater than 384 characters in length.