LV_SRE_SetPropertyEx

Sets various properties for a port, client, voice channel, or grammar.

int LV_SRE_SetPropertyEx(HPORT hport, int propertyname, int valuetype, void* pvalue,
                int target = PROP_EX_TARGET_PORT, intindex = 0 );

Return Values

Zero (0) or greater indicates success; property is set to the value pointed to by pvalue.

A negative result indicates a specific error:

-2: LV_SYSTEM_ERROR: An exception occured while setting the property

-11: LV_INVALID_PROPERTY_VALUE: The value is invalid for the designated property (e.g. out of range).

-15: LV_INVALID_PROPERTY_TARGET: The property cannot be set for the specified target.

-16: LV_INVALID_PROPERTY_VALUE_TYPE: The property's type is incompatible with the declared type.

-17: LV_INVALID_PROPERTY: The property does not exist.

-18: LV_INVALID_PROPERTY_TARGET_NDX: The target's index (grammar set, voicechannel) is out of range for this property.

Note: If more than one error occurs, which error code is returned is undefined.  

Parameters

hport

Which port to apply the property to.

propertyname

Which property to modify.

valuetype

The value type of the property being set.  Legal values are:

Each property has a set of legal set of value types.  See Properties, below.

pvalue

A pointer to the new value for propertyname. pvalue will be reinterpreted according to the value type provided.

target

The portion of the API that this property is set for. Legal values are:

Properties

Network Properties:

PROP_EX_SRE_SERVERS

PROP_EX_SET_SERVER_PORT

Pre-Processing Properties:

PROP_EX_TRIM_SILENCE_VALUE

Decode Properties:

PROP_EX_DECODE_THREAD_PRIORITY

PROP_EX_DECODE_OPTIMIZATION

PROP_EX_MAX_NBEST_RETURNED

PROP_EX_DECODE_TIMEOUT

PROP_EX_LOAD_GRAMMAR_TIMEOUT

Licensing Properties:

PROP_EX_LICENSE_TYPE

Logging Properties:

PROP_EX_SAVE_SOUND_FILES

See Also


Complete Help Topic List | Speech Engine Product Information