Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpObjectToken::MatchesAttributes
ISpObjectToken::MatchesAttributes determines if an object token supports a specified attribute.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT MatchesAttributes(</strong> <strong> const WCHAR</strong> *<em>pszAttributes</em>, <strong> BOOL</strong> *<em>pfMatches</em> <strong>);</strong> </pre>
Parameters
- pszAttributes
[in] Address of the null-terminated string specifying the object token attribute to match. - pfMatches
[out] Address of a variable that receives the value indicating a match of the object token attribute specified in pszAttributes. This value is set to TRUE when the object token attribute matches, and FALSE when it does not match.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One or more parameters are invalid. |
SPERR_UNINITIALIZED | The object has not been properly initialized. |
FAILED(hr) | Appropriate error message. |