SMplaystrphm
Previous Topic  Next Topic 

Synopsis:

       SMplaystrphm(vox_chan,str_words[,dataformat,samplerate])


Arguments:

       vox_chan The voice channel

       str_words A string containing the list of pairs of ipf_ids and words to play (as ASCII values)

       [dataformat] Optional format of ipf file

       [samplerate] Optional sample rate of ipf file


Description:  This function allow for a string of words/phrases from different IPF files to be specified by pairs of values in the str_words argument.        The string_words string contains the string of pairs of ascii values where each pair represents the ipf_id and the prompt_num for each word to be played.      


For example:


       x=SMplaystrph(vox_chan,,"`01`04`06`02");


The above function call will play the 4th prompt from the 1st IPF and the 2nd prompt from the 6th IPF.


Returns:  The function will return the terminating event that caused the play function to complete which will be one of the following as defined in ACULAB.INC


# Terminating events

const TERM_ERROR       = -1;

const TERM_TONE          = 1;

const TERM_ABORT       = 6;

const TERM_EODATA    = 7;


The function may also return other negative error codes if invalid parameters were specified.



/