int sm_channel_set_input_threshold(struct sm_channel_set_input_threshold_parms *thp)
typedef struct sm_channel_set_input_threshold_parms { tSMChannelId channel; /* in */ tSM_INT minimum_bits; /* in */ } SM_CHANNEL_SET_INPUT_THRESHOLD_PARMS;
A channel is considered to be ready for you to fetch data from it when there is enough data. This call allows you to specify how much is 'enough'.
While there is enough data to make a channel ready, the channel's associated read event (as configured with sm_channel_set_event()) remains set.
See also the document Prosody application note: considerations for data transfer thresholds.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody speech processing API.