LVSpeechPort::SetClientPropertyEx
This function is used to .
static int SetClientPropertyEx(int propertyname, int valuetype, void* pvalue);
Return Values
LV_SUCCESS
No errors; property is set to the value pointed to by pvalue.
LV_INVALID_PROPERTY
The property does not exist.
LV_INVALID_PROPERTY_VALUE
The property value is invalid for the designated property (e.g. out of range).
LV_INVALID_PROPERTY_TARGET
The property cannot be set for the specified target.
LV_INVALID_PROPERTY_VALUE_TYPE
The property's type is incompatible with the declared type.
Note: If more than one error occurs, which error code is returned is undefined.
Parameters
propertyname
Which property to modify.
valuetype
The value type of the property being set. Legal values are:
-
PROP_EX_VALUE_TYPE_INT
-
PROP_EX_VALUE_TYPE_INT_PTR
-
PROP_EX_VALUE_TYPE_STRING
-
PROP_EX_VALUE_TYPE_FLOAT_PTR
Each property has a set of legal set of value types.
pvalue
A pointer to the new value for propertyname. pvalue will be reinterpreted according to the value type provided.
Properties
A client property can be modified by calling this function even before opening a port.
PROP_EX_DECODE_THREAD_PRIORITY
- Description: Specifies the priority for the decode thread on the server. Higher priority threads will be processed before other applications on the same machine. Adjusting this parameter is useful for troubleshooting load issues on a machine.
- Scope: Port, Client
- Possible Values: PROP_EX_DECODE_THREAD_PRIORITY_LOW, PROP_EX_DECODE_THREAD_PRIORITY_NORMAL and PROP_EX_DECODE_THREAD_PRIORITY_HIGH
- Default Value: PROP_EX_DECODE_THREAD_PRIORITY_NORMAL
PROP_EX_CHOOSE_MODEL
- Description: If this property is enabled (set to a value of 1), then the client will decide which acoustic model is most appropriate for the server to use, based on a frequency analysis of the speaker's voice. Otherwise, two decodes will be done simultaneously, and an answer will be selected based on which model had better "coverage" for the speaker's voice.
- Scope: Client
- Possible Values: 0 or 1
- Default Value: 0
PROP_EX_DECODE_TIMEOUT
- Description: In a non-blocking decode, this is the timeout value, in milliseconds, used by LV_SRE_WaitForDecode and LVSpeechPort::WaitForDecode functions. In blocking decode, this is the time to wait until the decode times out and returns an error from LV_SRE_Decode and LVSpeechPort::Decode.
- Scope: Client
- Possible Values:
- Default Value: 20000
See Also
Complete Help Topic List | Speech Engine Product Information