VoiceBeg, EndVoice

The VoiceBeg/EndVoice instructions are used to indicate the code that should be executed when the datalogger detects a ring from a voice modem.

Syntax

VoiceBeg
        
voice code to be executed
EndVoice

Remarks

The VoiceBeg/EndVoice code is placed in the declarations portion of the program (prior to the BeginProg/EndProg code). The two instructions enclose the code that should be run when a ring is detected from a voice modem.

The EndVoice instruction hangs up the modem; therefore, VoiceHangup is not required unless you want to hang up the modem under some condition prior to the execution of the EndVoice instruction.

NOTE: When creating code for voice modems, the VoiceKey instruction should be used to add a delay before the EndVoice instruction is executed. Otherwise, the datalogger will end the VoiceSpeak command before the spoken message is completed.