Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpPhraseAlt::GetAltInfo
ISpPhraseAlt::GetAltInfo retrieves data elements associated with an alternate phrase.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetAltInfo(</strong> <strong><a runat="server" href="jj127695(v=msdn.10).md">ISpPhrase</a></strong> **<em>ppParent</em>, <strong> ULONG</strong> *<em>pulStartElementInParent</em>, <strong> ULONG</strong> *<em>pcElementsInParent</em>, <strong> ULONG</strong> *<em>pcElementsInAlt</em> <strong>);</strong> </pre>
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. |