Record <seconds>
Records the incoming
voice.
Parameters
<seconds>
Record duration in seconds.
Remarks
- The recorded
voice is saved automatically in a file specified in the variable $RecordFile.
This variable is automatically initialized to a unique temporary filename
by IVR when a session is started, or to a user defined one.
-
Both Record and Play back will work simultaneously only on full-duplex voice cards. But when using half-duplex cards, play automatically stops when record begins and vice versa.
Example
....
....
//The sample works only on full-duplex voice cards
$Recordfile = "Sample.wav"
Record 30
while int(RecordTimeLeft()/1000) > 10
sleep 100
endwhile
//10 more seconds to stop recording
//play beep to conclude the talk
beep
wait 0
....
....