Upgrade 3CX to v18 and get it hosted free!

Asterisk func speex

Author image

AGC() and DENOISE()

Synopsis

Apply automatic gain control or noise reduction to audio on a channel.

Asterisk version

Introduced with Asterisk 1.6.x?

Syntax

AGC(<channeldirection>)=<volume>
DENOISE(<channeldirection>)=<on|off>

The parameter “channeldirection” is required: This can be either rx or tx

Description

You must have speex installed, and you must have func_speex.so loaded.

The AGC function will apply automatic gain control to the audio on the channel that it is executed on. Using rx for audio received and tx for audio transmitted to the channel. When using this function you set a target audio level. It is primarily intended for use with analog lines, but could be useful for other channels as well. The target volume is set with a number between 1-32768. The larger the number the louder (more gain) the channel will receive.

The DENOISE function can be set to either ON or OFF. It will apply noise reduction to audio on the channel that it is executed on. It is very useful for noisy analog lines, especially when adjusting gains or using AGC. Use rx for audio received from the channel and tx to apply the filter to the audio being sent to the channel.

Examples

exten => 1,1,Set(AGC(rx)=8000)
exten => 1,2,Set(AGC(tx)=off)

exten => 1,1,Set(DENOISE(rx)=on)
exten => 1,2,Set(DENOISE(tx)=off)

See also

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.