mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 05:46:17 +00:00
0
Use "Ducking"
Terry Geng edited this page 2020-02-27 12:42:57 +08:00
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.