SMsetASRchanparm
Previous Topic  Next Topic 

Synopsis:

       SMsetASRchanparm(vox_chan,parmID,value[,parmID1,value1...])


Arguments:

       vox_chan The voice channel

       parmID  - The ID of the parameter to set

       value The value to set the parameter to

       [parmID1] Multiple parameters can be set through these optional arguments

       [value1] -  Multiple parameters can be set through these optional arguments

       etc


Description:   This function allows the ASR parameters to be set for a particular vox_chan prior to a call to SMctlASR().        The parmID argument specifies which parameter is to be set and can be one of the following values as defined in the ACULAB.INC:


# ASR parameters (as used by SMsetASRchanparm())

const ASRP_VFR_MAX_FRAMES        =0;

const ASRP_VFR_DIFF_THRESHOLD        =1;

const ASRP_PSE_MAX_FRAMES        =2;

const ASRP_PSE_MIN_FRAMES                =3;

const ASRP_VIT_SOFT_THRESHOLD        =4;

const ASRP_VIT_HARD_THRESHOLD        =5;

const ASRP_VIT_SNR_ADJUST                =6;


The above parameters map to one of the fields of the SM_ASR_CHARACTERISTICS structure as follows:


ParmID

Maps to Field:

ASRP_VFR_MAX_FRAMES

SM_ASR_CHARACTERISTICS.vfr_max_frames 

ASRP_VFR_DIFF_THRESHOLD

SM_ASR_CHARACTERISTICS.vfr_diff_threshold

ASRP_PSE_MAX_FRAMES

SM_ASR_CHARACTERISTICS.pse_max_frames

ASRP_PSE_MIN_FRAMES

SM_ASR_CHARACTERISTICS.pse_min_frames

ASRP_VIT_SOFT_THRESHOLD

SM_ASR_CHARACTERISTICS.vit_soft_threshold

ASRP_VIT_HARD_THRESHOLD

SM_ASR_CHARACTERISTICS.vit_hard_threshold

ASRP_VIT_SNR_ADJUST

SM_ASR_CHARACTERISTICS.vit_snr_adjust


See the description of the Aculab sm_listen_for_asr() function for more information about these parameters and their meanings.


Returns:  Returns 0 if successful or a negative error code.