Partager via


ISpShortcut::AddShortcut (SAPI 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

Value
S_OK
E_INVALIDARG