Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

About

This page describes how the application detect_silence worksPause dialplan execution while waiting for a certain length of silence on the channel. When silence is detected, or when the timeout period has expired, dialplan processing will continue.

Expand
titleClick here to expand Table of Contents


Panel
borderColorlightgray
bgColor#f7f7f7
borderWidth1
borderStyledotted

Table of Contents
maxLevel3
outlinetrue
indent1em
excludeAbout
stylenone
printablefalse


...

Code Block
detect_silence <silence_thresh> <silence_hits> <timeout> [<file>]


Description

Pause dialplan execution while waiting for a certain length of silence on the channel. When silence is detected, or when the timeout period has expired, dialplan processing will continue.

This function is similar to the wait_for_silence function except this does not require noise hits before listening for silence

...

  • The silence_thresh value is the silence threshold. The lower the value, the "quieter" the channel must be in order to be considered in a silent state. the numbers have to be *bigger* not smaller to make it harder to detect silenceA larger value allows louder sound received from the endpoint to be treated as silence.
  • The silence_hits value represents the number of consecutive frames received with an "energy level" below the silence_thresh value that must be seen before the channel is considered in a silent state. The higher this value, the longer the channel must be in a "silent" state before silence is detected.
  • The <timeout_ms> value represents the number of overall time in milliseconds that the wait_for_silence app will attempt to detect silence before giving up ending the wait and moving on with to the next dialplan processingline.
  • <file> is an optional sound file that can be read and analyzed for silence detection.

...