Share via


Note

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

Microsoft Speech Platform

ISpObjectTokenCategory::GetDefaultTokenId

ISpObjectTokenCategory::GetDefaultTokenId retrieves the default token ID for the category.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetDefaultTokenId(</strong> <strong> LPWSTR </strong> **<em>ppszCoMemTokenId</em> <strong>);</strong> </pre>

Parameters

  • ppszCoMemTokenId
    [in] The null-terminated string name of the token ID used as the default. Must be released with CoTaskMemFree () when no longer needed.

Return Values

Value Description
S_OK Function completed successfully.
SPERR_UNINITIALIZED Data key interface is not initialized.
E_POINTER ppszCoMemTokenId is invalid or bad.
FAILED(hr) Appropriate error message.

Remarks

A default token has an attribute marked as DefaultTokenID. Default tokens are discussed in Using Object Tokens and Categories.