Set the wait time before the CSP comfort tone starts playing after the barge-in event. Also sets the file to play. ///
[Visual Basic] Public Shared Function SetComfortCSP( _ ByVal chdev As Integer, _ ByVal milliseconds As Integer, _ ByVal source As Source, _ ByVal voice_format As VoiceFormat, _ ByVal FileName As String, _ ByVal Fhandle As Integer, _ ByVal prompt_to_play As String _ ) As Integer
How many milliseconds to wait after the Barge-In before playing comfort tone. 0 - wait until end of speech input. -1 - Reset to default
source
This parameter can be 1) CTI_FILE (0 defined in cti.h) which will play a file from disk from beginning to end, 2) CTI_VAP (1 defined in cti.h) which will play one or more prompts from a indexed voice file (.VAP). 3) CTI_MEMORY_VAP (2 defined in cti.h) which will play from an indexed voice file which has been loaded into memory, or 4) CTI_MEMORY (3 defined in cti.h) which will play a file from a memory location for a specified length. CTI_VAP_INDEX_IN_MEMORY (4 defined in cti.h) which will play prompts from the disk, but the VAP index has been loaded in memory by the application
voice_format
This defines the voice file type and sampling rate. Available options: Kbps64 2 //PCM 8Khz VOX format) 8000 b/s Wave8 5 //8Khz Wave 8000 bytes/sec Vox8Mulaw
FileName
Comfort Tone File. This is the name of the file to play if CTI_FILE. It contains the full path to the file. If the Source was CTI_MEMORY or CTI_MEMORY_VAP, this is a memory pointer to the base offset of the memory to be used. For CTI_VAP, this parameter is not used - the VAP file is expected to be open and a file handle is passed in the next parameter. If the Source is CTI_VAP_INDEX_IN_MEMORY, this parameter contains the memory pointer to the start of the VAP index that has been loaded into memory
Fhandle
For CTI_VAP or CTI_VAP_INDEX_IN_MEMORY, this is the file handle to the open index file to use. For CTI_MEMORY, this contains the length of the file in memory to play. For CTI_FILE and CTI_MEMORY_VAP, this parameter is not used
prompt_to_play
This is a string list of prompts to be played out of a VAP file or memory VAP. It is not used if CTI_FILE or CTI_MEMORY was specified. It can contain one or more prompts that you wish spoken together. Each prompt should be separated by a comma. For example, if you wanted to say three phrased together, and the phrased were prompts 9, 2, and 56 respectively, then you would pass “9,2,56” to this parameter.