Property: SilenceSwing
| Type: |
Integer |
|
| Properties: |
ReadWrite, available at both design and run time. |
|
| Function: |
Defines what will be
considered as "Silence" on the line. This property is useful
when judging line status or monitoring silence. |
|
| Description: |
Sounds with a frequency below the SilenceSwing setting will be considered to be silence.
Setting SilenceSwing at design time, makes it apply to all lines. Setting it at run time means it will only apply to the current line.
See also: Judging Telephony Line Status |
|
Sample Code In Visual Basic:
The following code shows how to set SilenceSwing,UpFrequency and DownFrequency before dialing, to get more accurate and more reliable judgment of the telephony line status. You may also set them at design time.
Sub cmdDial_Click()
VoiceAngel1.SilenceSwing = 1000
VoiceAngel1.UpFrequency =500
VoiceAngel1.DownFrequency =350
VoiceAngel1.Dial "666666"
End sub
¡¡