EngineClass Property

EngineClass Property

Gets and sets the class of the engines in this configuration.

obj.EngineClass = integer

Part

Description

obj

An instance of the EngineConfiguration class.

integer

An unsigned integer that specifies the class of the engines.

Settings

Valid settings for the EngineClass property are:

Setting

Description

0

Default. The engine is a member of the recognizer class. In the Management Console (MMC) snap-in this setting displays as "Recognition."

1

The engine is a member of the prompt voice class. In the MMC snap-in this setting displays as "Prompt."

2

The engine is a member of the DTMF parser class. In the MMC snap-in this setting displays as "DTMF."

Qualifiers

Qualifier

Value

Description

Registry

True

If True, this property value is read from the Registry.

Restart

False

Changes to this property take effect without requiring the service to restart.

DefaultValue

0

Default value for this property.

MinValue

0

The minimum value for this property.

MaxValue

2

The maximum value for this property.

Remarks

This property is exposed in the Microsoft Speech Server (MSS) snap-in for Microsoft Management Console (MMC).

Use numerical settings to set this property in VBScript. Use the equivalent string settings in MMC. Both numerical and string settings appear in the Settings table in this topic.

Windows Management Instrumentation (WMI) Script Example

myComputer = "localhost"

' Use a Locator object to connect to WMI.
Set locator = CreateObject("WbemScripting.SWbemLocator")
Set namespace = locator.ConnectServer(myComputer, "root/MSS")

' Get an instance of the EngineConfiguration class.
Set eng = namespace.Get("EngineConfiguration.ConfigName='DefaultVoice'")

' Display the current property value.
WScript.Echo eng.EngineClass

' Set the value.
eng.EngineClass = ""

' Update the class instance in WMI.
eng.Put_

Member Of

EngineConfiguration class