Microsoft Speech Platform
ISpXMLRecoResult::GetXMLResult
ISpXMLRecoResult::GetXMLResult returns the result as Semantic Markup Language (SML).
Recognition results are returned in Semantic Markup Language (SML), an XML format defined in the W3C document Semantic Interpretation for Speech Recognition.
HRESULT GetXMLResult(
LPWSTR *ppszCoMemXMLResult,
SPXMLRESULTOPTIONS Options
);
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. |