Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

SpFindBestToken

SpFindBestToken enumerates the token category and finds the single best match (if any) based on the required and optional attributes.

Found in: sphelper.h

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>SpFindBestToken(</strong> <strong> const WCHAR</strong> *<em>pszCategoryId</em>, <strong> const WCHAR</strong> *<em>pszReqAttribs</em>, <strong> const WCHAR</strong> *<em>pszOptAttribs</em>, <strong> <a runat="server" href="jj127672(v=msdn.10).md">ISpObjectToken</a></strong> **<em>ppObjectToken</em> <strong>);</strong> </pre>

Parameters

  • pszCategoryId
    [in] The null-terminated string category ID on which to base the enumerations.
  • pszReqAttribs
    [in] The null-terminated string of the required attributes for the token.
  • pszOptAttribs
    [in] The null-terminated string of the optional attributes for the token. The order in which the tokens are listed in ppObjectToken is based on the order they match pszOptAttribs.
  • ppObjectToken
    [out] The single best matched token found.

Return Values

Value Description
S_OK Function completed successfully.
SPERR_NOT_FOUND No items match the given attributes.
FAILED (hr) Appropriate error message.