SpObjectTokenCategory Interface (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4


The SpObjectTokenCategory automation object represents a class of object tokens. Object tokens are associated with specific folders in the Speech configuration database, and these folders are organized into categories, such as Recognizers, AudioInputs and Voices. An SpObjectTokenCategory object represents a single category of object tokens, and provides access to all the tokens within that category.

Applications can derive the category of an initialized SpObjectToken object from its Category property, or they can create a new SpObjectTokenCategory object and use the SetId method to associate it with a particular category.

Automation Interface Elements

The SpObjectTokenCategory automation object has the following elements:

Default PropertyGets and sets the ID of the default token in the category.
Id PropertyReturns the name of the object token category.
EnumerateTokens MethodReturns a selection of SpObjectToken objects.
GetDataKey MethodReturns the data key of the category in the speech configuration database.
SetId MethodSets the ID of the category.