Method: MonitorSilence
|
Function: |
Monitor silence at the current line. |
|
|
Parameters: |
nSilenceTime: Time in milliseconds. If this period elapses without noise, the Silence event is raised. Setting it to zero, turns off silence monitoring. |
|
| Description: |
Use this Method to check for silence on the line. Once it is activated you cannot play a wave file on the line or Sound Card. (You can still record on it.) |
|
| Dependencies: |
For a telephone line, you must have a successful connection; for a Sound card, you must set the current line (CurrentLineIndex, CurrentLineName) to -1. |
|
| Events Raised: |
Silence (after nSilenceTime milliseconds). |
|
Sample Code In Visual Basic:
'The following code starts monitoring silence after connection of the call.
Sub VoiceAngel1_Connected(LineIndex as integer ,fIncoming as boolean )
VoiceAngel1.CurrentLineIndex = LineIndex
VoiceAngel1.MonitorSilence 5000
End sub