ISpShortcut::AddShortcut (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

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

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGThe utterance is empty or greater than 384 characters in length.
Show: