SMabort
Previous Topic  Next Topic 

Synopsis:

       SMabort(vox_chan)


Arguments:

       vox_chan The voice channel


Description:    This functions will abort a speech operation that is currently running on the given channel.    This function works with all of the blocking type speech functions listed below:


SMplay()

SMplayh()

SMrecord()

SMwaittones()

SMplaytone()

SMplaydigits()

SMplayptone()

SMgetrecrognised()

SMplayph()

SMplaypr()


If the SMabort() function is used to interrupt any of the above functions then the terminating event type returned by the function will be TERM_ABORT.


Returns:  0 if successful or -1 if an invalid voice channel is specified.