Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpXMLRecoResult::GetXMLResult
ISpXMLRecoResult::GetXMLResult returns the recognition result as Semantic Markup Language (SML), an XML format defined in the W3C document Semantic Interpretation for Speech Recognition.
<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] The SML will be placed in this string. - Options
Used to specify whether the primary result or the alternate results should be returned.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | ppszCoMemXMLResult is invalid. |
S_FALSE | An empty false reco (no elements) or hypothesis occurred. |
E_NOTIMPL | Engine does not support functionality. |
Remarks
For more information about SML, see Semantic Markup Language Reference (Microsoft.Speech).