LV_SRE_StreamSetParameter

Sets a new value for a stream property. Also adds the parameter and value pair to the request BTS.

int LV_SRE_StreamSetParameter(HPORT hport, int StreamParameter, unsigned long  StreamParameterValue);

Return Values

LV_SUCCESS

No errors; parameter changed correctly.

A negative result indicates a specific error:

-11: LV_INVALID_PROPERTY_VALUE: The StreamParameterValue is out of range for the specified parameter.

-17: INVALID_PROPERTY: The specified parameter does not exist.

Remarks

The streaming parameters set by this function are very important for the Engine to correctly determine when speech begins and ends, which in turn is important for getting accurate recognition. A common problem in speech applications is that the Engine may cut off the start or end of an utterance if these settings are incorrect.

See our recommended Engine settings for some ideas of how to alter these settings for different types of applications.

Note About VAD Settings

In the July 2007 release of the Engine (7.5.600), the voice activity detection (VAD) parameters have been overhauled as a result of significant changes to the way VAD functions. There are now fewer parameters to adjust, as the Engine will now be smarter at separating voice activity from other noises.

The following stream parameters have been removed: VAD_BARGEIN_LVL, BARGE_IN_DYNAMIC_ADJUST, BARGE_IN_NOISE_COUNT_LOW_THRESHOLD, USE_FREQ_VAD, NOTIFY_OF_BEEPS, VAD_NOISE_FLOOR, and VAD_BURST_THLD.

BARGE_IN_BEGIN_DELAY has been changed from using increments of 1/8 seconds to milliseconds.

Two new parameters have been added: VAD_VOLUME_SENSITIVITY and VAD_SNR_SENSITIVITY. They are similar to the older Barge-In Level and Noise Floor parameters, but have some important differences.

Parameters

HPort

The port's handle.

StreamParameter

Stream parameter to change.  See Properties, below.

StreamParameterValue

New stream parameter value.

Properties

Decode Properties:

STREAM_PARM_DECODE_FLAGS

STREAM_PARM_VAD_WIND_BACK

STREAM_PARM_VAD_EOS_DELAY

STREAM_PARM_VAD_INIT_mode

Streaming Properties:

STREAM_PARM_AUTO_DECODE

STREAM_PARM_BARGE_IN_TIMEOUT

STREAM_PARM_DETECT_BARGE_IN

STREAM_PARM_vad_volume_sensitivity

STREAM_PARM_vad_snr_sensitivity

STREAM_PARM_DETECT_END_OF_SPEECH

STREAM_PARM_END_OF_SPEECH_DETECTION

STREAM_PARM_END_OF_SPEECH_TIMEOUT

STREAM_PARM_SOUND_FORMAT

See Also


Complete Help Topic List | Speech Engine Product Information