Export (0) Print
Expand All

ISpeechDataKey Interface (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpeechDataKey

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:


MethodsDescription
CreateKey MethodCreates the specified subkey within the data key.
DeleteKey MethodDeletes the specified subkey from the data key.
DeleteValue MethodDeletes the specified value from the data key.
EnumKeys MethodReturns the name of one subkey of the data key, specified by its index.
EnumValues MethodReturns the name of one value of the data key, specified by its index.
GetBinaryValue MethodGets the specified binary value from the data key.
GetLongValue MethodGets the specified Long value from the data key.
GetStringValue MethodGets the specified String value from the data key.
OpenKey MethodOpens the specified subkey of the data key as another data key object.
SetBinaryValue MethodSets the specified binary value in the data key.
SetLongValue MethodSets the specified Long value in the data key.
SetStringValue MethodSets the specified String value in the data key.
Show:
© 2015 Microsoft