ISpObjectWithToken (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3


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

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

Applications do not need to implement this interface, but engine, lexicon, or custom audio developers may implement it in order to access their object token data.

Implemented By
  • SpMMAudioEnum
  • SpRecPlayAudio
  • SpUnCompressedLexicon
  • SpCompressedLexicon

Methods in Vtable Order

ISpObjectWithToken MethodsDescription
SetObjectTokenBinds the instance object to the specified token.
GetObjectTokenRetrieves an object token.