Share via


Note

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

Microsoft Speech Platform

SpGetDefaultTokenFromCategoryId

SpGetDefaultTokenFromCategoryId gets the default token for the specified category ID.

Found in: sphelper.h

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>inline HRESULT SpGetDefaultTokenFromCategoryId(</strong> <strong> const WCHAR</strong> *<em>pszCategoryId</em>, <strong> <a runat="server" href="jj127672(v=msdn.10).md">ISpObjectToken</a></strong> **<em>ppToken</em>, <strong> BOOL</strong> *<em>fCreateCategoryIfNotExist</em> = TRUE <strong>);</strong> </pre>

Parameters

  • pszCategoryId
    [in] The null-terminated string for the category ID.
  • ppToken
    [out] The default token for the category ID.
  • fCreateCategoryIfNotExist
    [in] An optional parameter allowing the category to be created if one does not currently exist. By default, the value is TRUE unless otherwise indicated.

Return Values

Value Description
S_OK Function completed successfully.
FAILED (hr) Appropriate error message.