Share via


Note

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

Microsoft Speech Platform

ISpObjectToken::GetId

ISpObjectToken::GetId retrieves the object identifier for an object token. This identifier can be used later to recreate a token instance.

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

Parameters

  • ppszCoMemTokenId
    Address of a pointer to a null-terminated string that receives the identifier for the token object. The caller must call CoTaskMemFree() to free the string pointer.

Return Values

Value Description
S_OK Function completed successfully.
E_POINTER ppszCoMemTokenId is invalid or bad.
E_OUTOFMEMORY Exceeded available memory.
SPERR_UNINITIALIZED TokenId interface is not initialized.
FAILED(hr) Appropriate error message.