Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated to GIT-16-6dff269

...

The TALK_DETECT function enables events on the channel it is applied to. These events can be emited emitted over AMI, ARI, and potentially other Asterisk modules that listen for the internal notification.

...

By default this value is 2500ms. Valid values are 1 through 2^31.

Code Block
titleExample: Enable talk detection
linenumberstrue


same => n,Set(TALK_DETECT(set)=)

...



Code Block
titleExample: Update existing talk detection's silence threshold to 1200 ms
linenumberstrue


same => n,Set(TALK_DETECT(set)=1200)

...



Code Block
titleExample: Remove talk detection
linenumberstrue


same => n,Set(TALK_DETECT(remove)=)

...



Code Block
titleExample: Enable and set talk threshold to 128
linenumberstrue


same => n,Set(TALK_DETECT(set)=,128)

...



This function will set the following variables:

Info
titleNote

The TALK_DETECT function uses an audiohook to inspect the voice media frames on a channel. Other functions, such as JITTERBUFFER, DENOISE, and AGC use a similar mechanism. Audiohooks are processed in the order in which they are placed on the channel. As such, it typically makes sense to place functions that modify the voice media data prior to placing the TALK_DETECT function, as this will yield better results.

Code Block
titleExample: Denoise and then perform talk detection
linenumberstrue


same => n,Set(DENOISE(rx)=on)    ; Denoise received audio

same => n,Set(TALK_DETECT(set)=) ; Perform talk detection on the denoised received audio

Syntax

No Format
TALK_DETECT(action)

...

This documentation was imported from Asterisk Version GIT-16-a4d533d6dff269