ISpPhraseAlt::GetAltInfo (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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 Description
S_OK Function completed successfully.
E_INVALIDARG At least one of the parameters is invalid or bad.
SPERR_NOT_FOUND The alternate is not associated with a valid parent phrase object.