Share via


Note

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

Microsoft Speech Platform

ISpDataKey

The ISpDataKey interface provides a mechanism for storing and retrieving strings and other types of 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. This is the standard class used for all existing object tokens in the Speech Platform. The data for each object token is stored in the registry.
  • Applications or engines can implement the ISpDataKey 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.