Share via


ISpPhraseAlt::GetAltInfo (SAPI 5.3)

Microsoft Speech API 5.3

ISpPhraseAlt::GetAltInfo

ISpPhraseAlt::GetAltInfo retrieves data elements associated with an alternate phrase.

  
    HRESULT GetAltInfo(
   ISpPhrase   **ppParent,
   ULONG        *pulStartElementInParent,
   ULONG        *pcElementsInParent,
   ULONG        *pcElementsInAlt
);

Parameters

  • ppParent
    [out] Address to store the pointer to the parent SpPhrase object.
  • pulStartElementInParent
    [out] Address to store the starting element position within the parent phrase that this alternate applies to.
  • pcElementsInParent
    [out] Address to store the number of elements within the parent that this alternate replaces.
  • pcElementsInAlt
    [out] Address to store the number of elements that the alternate contains.

Return values

Value
S_OK
E_INVALIDARG
SPERR_NOT_FOUND