ISpObjectWithToken

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpObjectWithToken

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 Methods Description
SetObjectToken Binds the instance object to the specified token.
GetObjectToken Retrieves an object token.