ISpObjectWithToken (Windows Embedded CE 6.0)
1/6/2010
This interface represents any object that is associated with an object token. SAPI creates the associated object when ISpObjectToken::CreateInstance is called on the object token. If this object implements ISpObjectWithToken then the SetObjectToken method will be called, passing in a reference to the object token. This allows an object to find out which object token is creating it, and to get or set data in the object token.
Applications do not need to implement this interface. A TTS or SR engine, custom audio device or lexicon, or any other object that is being created from an object token may want to implement this interface to get access to the associated object token.
When to Implement
The following classes implement this interface currently in SAPI. The TTS and SR engines shipped with SAPI 5.0 also implement this interface.
SpMMAudioEnum
SpUnCompressedLexicon
SpCompressedLexicon
Methods
This table lists methods for the ISpObjectWithToken interface.
Methods | Description |
---|---|
Gets an object token. |
|
Binds the instance object to the specified token. |
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |