Browse
 
Tools
Rss Categories

LV_SRE_GetIntPropertyEx

Reference Number: AA-00694 Views: 7665 0 Rating/ Voters

Gets various properties of integer type for a specific port or the client properties used in initializing a new port.

Function

  • int LV_SRE_GetIntPropertyEx(HPORT hport, int property, int target, int *pvalue)

Parameters

hport

The port from which to get the property.

property

Selects the property whose value needs to be returned. This function can return the property value for Speech Port Properties with Value Type of PROP_EX_VALUE_TYPE_INT or PROP_EX_VALUE_TYPE_INT_PTR.

target

Specifies whether the property is requested from a single port or from the client. Client values are the default values used when a new port is opened. Legal values are PROP_EX_TARGET_PORT and PROP_EX_TARGET_CLIENT.

pvalue

An int pointer that is set to the property value.

Return Values

LV_SUCCESS

No errors.

LV_FAILURE

The property cannot not be retrieved.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_INVALID_PROPERTY_TARGET

The property cannot be retrieved for the specified target.

LV_INVALID_PROPERTY

The property does not exist.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

For PROP_EX_TARGET_CLIENT properties the hport value is ignored

From 10.0 to 10.2, the following properties are supported with the following targets:

  • PROP_EX_TARGET_CLIENT
    • PROP_EX_MAX_NBEST_RETURNED
    • PROP_EX_DECODE_THREAD_PRIORITY
    • PROP_EX_DECODE_TIMEOUT
    • PROP_EX_LOAD_GRAMMAR_TIMEOUT
    • PROP_EX_SAVE_SOUND_FILES
    • PROP_EX_TRIM_SILENCE_VALUE
    • PROP_EX_ACOUSTIC_MODEL_RESOLUTION
    • PROP_EX_SPEED_VS_ACCURACY
    • PROP_EX_STRICT_SISR_COMPLIANCE
    • PROP_EX_NOISE_REDUCTION_ENABLE
    • PROP_EX_LOGGING_VERBOSITY
  • PROP_EX_TARGET_PORT
    • PROP_EX_MAX_NBEST_RETURNED
    • PROP_EX_DECODE_THREAD_PRIORITY
    • PROP_EX_DECODE_TIMEOUT
    • PROP_EX_LOAD_GRAMMAR_TIMEOUT
    • PROP_EX_SAVE_SOUND_FILES
    • PROP_EX_TRIM_SILENCE_VALUE
    • PROP_EX_ACOUSTIC_MODEL_RESOLUTION
    • PROP_EX_SPEED_VS_ACCURACY
    • PROP_EX_STRICT_SISR_COMPLIANCE
    • PROP_EX_NOISE_REDUCTION_ENABLE
     

See Also