ISpDataKey

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpDataKey

The ISpDataKey interface provides a mechanism for storing and retrieving string and other data. ISpDataKey is used in conjunction with object tokens, which implement ISpObjectToken, which inherits from ISpDataKey. For example, data can be stored in an object token representing a recognizer or TTS engine using this interface.

Implemented By
  • SpObjectToken object. This is the standard class used for all existing SAPI object tokens. The data for each object token is stored in the registry.
  • SpDataKey object. This class stores the data associated with the data key in the registry.
  • Applications or engines can implement this interface directly if they wish to provide a custom data key implementation.

Methods in Vtable Order

ISpDataKey Methods Description
SetData Sets the binary data for a token.
GetData Retrieves the binary data for a token.
SetStringValue Sets the string value information for a specified token.
GetStringValue Retrieves the string value information from a specified token.
SetDWORD Sets the value information for a specified token.
GetDWORD Retrieves the value information from a specified token.
OpenKey Opens a specified token subkey.
CreateKey Creates a new token subkey.
DeleteKey Deletes a specified token key and all its descendants.
DeleteValue Deletes a named value from the specified token.
EnumKeys Enumerates the subkeys of the specified token.
EnumValues Enumerates the values of the specified token.