ISpeechDataKey Interface (SAPI 5.4)
The ISpeechDataKey automation interface provides read and write access to the speech configuration database.
The Speech configuration database contains folders which represent the resources on a computer which are used by SAPI 5.1 and later SR and TTS. These folders are organized into resource categories, such as voices, lexicons, and audio input devices. The SpObjectTokenCategory object provides access to a category of resources, and the SpObjectToken object provides access to a single resource.
An ISpeechDataKey object is typically created by the DataKey property of an SpObjectToken or the GetDataKey method of an SpObjectTokenCategory object. Such an ISpeechDataKey object provides read and write access to the database folder represented by its parent token or token category object. Further ISpeechDataKey objects can be created by CreateKey and OpenKey calls on existing ISpeechDataKey objects. ISpeechDataKey methods can create, delete and enumerate subfolders and values in the database folder represented by an ISpeechDataKey object.
Automation Interface Elements
The ISpeechDataKey automation interface contains the following elements:
|CreateKey Method||Creates the specified subkey within the data key.|
|DeleteKey Method||Deletes the specified subkey from the data key.|
|DeleteValue Method||Deletes the specified value from the data key.|
|EnumKeys Method||Returns the name of one subkey of the data key, specified by its index.|
|EnumValues Method||Returns the name of one value of the data key, specified by its index.|
|GetBinaryValue Method||Gets the specified binary value from the data key.|
|GetLongValue Method||Gets the specified Long value from the data key.|
|GetStringValue Method||Gets the specified String value from the data key.|
|OpenKey Method||Opens the specified subkey of the data key as another data key object.|
|SetBinaryValue Method||Sets the specified binary value in the data key.|
|SetLongValue Method||Sets the specified Long value in the data key.|
|SetStringValue Method||Sets the specified String value in the data key.|