VoiceChange news Content of documentation User documentation Administrator documentation Index of terms Technical Support Search on-line

VoiceChange COM objects reference - main list
Method ReceiveVoice

Syntax

Result = VXLineObject.ReceiveVoice(FileName, Params, DTMF, VoiceParams)

Description

Receive sound file into the file FileName.

Parameter string Params:

Parameter Description
timeout Integer number between 10 to 1000000. Maximal time of recording. (in miliseconds).
silent Integer number between 100 to 100000. Within this range if silence on line occures, then recording (receiving) will be finnished.
CNG_done Upon receiving CNG tone (fax) the recording will be (value 1) or not (value 1) stopped.
terminate_codes DTFM codes string. Terminate receiving upon receiving any of these codes.
beep Before receiving there will be (value 1) or not (value 0) a short beep.
maxlen Maximum length of received DTMF. After receiving maxlen characters the receiving will be finished.

In DTMF is a returned DTMF received during the recording.

Output parameter string VoiceParams:

Parameter Description
online Integer number. Length of recorder sound (in miliseconds).
time String. Date and time of beginning of recording.
status Possible values:
timeout receiving was finished after timeout
silence silence was on line for a longer time
hangup calling party hang up
dtmf_full maximum length DTMF maxlen was reached
dtmf_timeout receiving was finished after timeout
dtmf_endchar some of terminate characters was reached
fax incoming call is fax
noanswer no answer
unknown unknown state
retval Return value
ret_unknown identification of unknown error
online receiving length
time receive time

Return code see method GetState.

.