Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Use "Ducking"

Terry Geng edited this page Feb 27, 2020 · 2 revisions

Ducking is a term in the broadcasting industry. The Wikipedia reads In ducking, the level of one audio signal is reduced by the presence of another signal. In our context, the "another signal" is the voice of other users.

This function is particularly useful when people aren't talking much in one channel, so you want to hear the music most of the time but also people's voices if someone starts to talk suddenly.

Ducking is disabled by default. To enable ducking, you can

  • Enable in the configuration file:
[bot]
ducking = True
  • Enable by command: !duck on

There are two parameters you can adjust in the configuration file and by command:

  • ducking_volume or !duckv [volume]: when ducking is triggered, the volume of the music.
  • ducking_threshold or !duckthres [threshold]: the intensity of people's voice needed to trigger ducking. The default value is 3000. For relatively noisy environment, 7000 or even 9000 is needed to achieve a optimal performance.