Synopsis:
SMctlASR(vox_chan,off_on_cont)
Arguments:
vox_chan – The voice channel
off_on_cont – Set to 0 to turn ASR recognition off, 1 to turn it on for a single recognition event, 2 to turn it on contimuously
Description: This function allows Active Speech Recognition (ASR) to be turned on or off on the specified vox_chan. The set of vocabulary items that will be recognised are defined by calls to the SMaddASRitem() function. If off_on_cont is set to 0 the ASR detection is turned off. If off_on_cont is set to 1 then a signal recognition event will be activated for the vocabulary set on the channel. Once one of these vocabulary items has been recognised then the ASR will be turned off again.
For continous ASR vocabulary recognition the off_on_cont should be set to 2.
Returns: Returns 0 if successful or a negative error code.