Helper SpCreateNewToken (SAPI 5.4)

Microsoft Speech API 5.4

SpCreateNewToken (by TokenId)

SpCreateNewToken creates a token forcefully.

Found in: sphelper.h

  
    inline HRESULT SpCreateNewToken(
   const WCHAR       *pszTokenId,
   ISpObjectToken   **ppToken
);

Parameters

  • pszTokenId
    [in] The null-terminated string indicating the token IDw.
  • ppToken
    [out] The token being created. It is created with CoCreateInstance and must be manually freed when no longer required.

Return values

Value
S_OK
FAILED (hr)