Export (0) Print
Expand All
Expand Minimize

Instances Property

Published: June 20, 2005

Instances Property

Gets and sets the number of engine instances that Speech Engine Services creates for this configuration.

obj.Instances = integer

Part

Description

obj

An instance of the EngineConfiguration class.

integer

An unsigned integer that specifies the number of engine instances; must be greater than or equal to zero.

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

1

Default value for this property.

MaxValue (Standard Edition)

24

The maximum number of engine instances allowed for this configuration.

MaxValue (Enterprise Edition)

1024

The maximum number of engine instances allowed for this configuration.

Remarks

This property is exposed in the Microsoft Speech Server (MSS) snap-in for Microsoft Management Console (MMC). For more information, see Configuring Speech Engine Services (SES) Engines.

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.Instances

' Set the value.
eng.Instances = 1

' Update the class instance in WMI.
eng.Put_

Member Of

EngineConfiguration class

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft