Lang Property

Lang Property

Gets and sets the default SALT interpreter language identifier, if the language identifier is not already specified on the page.

obj.Lang = string

Part

Description

obj

An instance of the TAS class.

string

A case-insensitive string that specifies the language identifier.

Qualifiers

Qualifier

Value

Description

Registry

True

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

Restart

False

If False, changes to this property take effect without requiring the service to restart.

DefaultValue

"en-US"

Default value for this property.

Remarks

This property is not exposed in the Microsoft Speech Server Management Console snap-in.

Lang property settings supported in MSS 2004 include the default, "en-US" (US English), as well as "es-US" (US Spanish), and "fr-CA" (Canadian French).

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 the TAS instance.
Set tel = namespace.Get("TAS=@")

' Display the current value.
WScript.Echo tel.Lang

' Set the property value.
tel.Lang = "en-US"

' Update the class instance in WMI.
tel.Put_

Member Of

TAS class