TapiCallWaitForSilence Method |
Waits until either a period of silence has been detected or the specified time interval has elapsed.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax public bool WaitForSilence(
int silenceDurationMilliseconds,
int timeoutSeconds
)
Public Function WaitForSilence (
silenceDurationMilliseconds As Integer,
timeoutSeconds As Integer
) As Boolean
public:
bool WaitForSilence(
int silenceDurationMilliseconds,
int timeoutSeconds
)
Parameters
- silenceDurationMilliseconds
- Type: SystemInt32
Duration of time during which the silence should be present before a detection is made, in milliseconds. - timeoutSeconds
- Type: SystemInt32
Timeout period in seconds.
Return Value
Type:
BooleanThis method returns
true if the silence was detected or
false if the silence was not detected within the specified time interval.
Exceptions Remarks WaitForSilence detects a specified period of silence on the call.
This method can be useful if the application makes outgoing calls
and needs to wait until the end of answering machine greetings before playing a message.
Please note that the telephony hardware must support hardware silence detection for this method to work.
Regular voice modems do not support silence detection.
See Also