...
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 |
---|
title | Example: Enable talk detection |
---|
linenumbers | true |
---|
|
same => n,Set(TALK_DETECT(set)=) |
...
Code Block |
---|
title | Example: Update existing talk detection's silence threshold to 1200 ms |
---|
linenumbers | true |
---|
|
same => n,Set(TALK_DETECT(set)=1200) |
...
Code Block |
---|
title | Example: Remove talk detection |
---|
linenumbers | true |
---|
|
same => n,Set(TALK_DETECT(remove)=) |
...
Code Block |
---|
title | Example: Enable and set talk threshold to 128 |
---|
linenumbers | true |
---|
|
same => n,Set(TALK_DETECT(set)=,128) |
...
This function will set the following variables:
Info |
---|
|
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 |
---|
title | Example: Denoise and then perform talk detection |
---|
linenumbers | true |
---|
|
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