Share via


Note

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

Microsoft Speech Platform

ISpObjectWithToken

Any object associated with an object token implements the ISpObjectWithToken interface. When the method ISpObjectToken::CreateInstance is called on the object token, the Speech Platform creates the associated object. If this object implements ISpObjectWithToken, the SetObjectToken method will be called, passing in a reference to the object token.

After the Speech Platform calls ISpObjectWithToken::SetObjectToken, a token object is created and its data may be accessed.

Applications do not need to implement this interface, but developers of engines, lexicons, or custom audio may implement it to access their object token data.

Implemented By

Methods in Vtable Order

ISpObjectWithToken Methods Description
SetObjectToken Binds the instance object to the specified token.
GetObjectToken Retrieves an object token.