Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpPhrase2::GetXMLResult
ISpPhrase2::GetXMLResult provides result information for the phrase as Semantic Markup Language (SML).
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetXMLResult(</strong> <strong> LPWSTR</strong> *<em>ppszCoMemXMLResult</em>, <strong> <a runat="server" href="jj127489(v=msdn.10).md">SPXMLRESULTOPTIONS</a></strong> <em>Options</em> <strong>);</strong> </pre>
Parameters
- ppszCoMemXMLResult
[out] Returns a string containing the result in SML (XML) format. - Options
Indicates whether to return just the main result or the main result and the alternates.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | ppszCoMemXMLResult is invalid. |
SPERR_SML_GENERATION_FAIL | |
The SML could not be generated. | |
E_OUTOFMEMORY | |
Exceeded available memory. | |
E_NOTIMPL | |
Engine does not support this functionality. |
Remarks
For more information about SML, see Semantic Markup Language Reference (Microsoft.Speech).