Audio Filters
Learn how to use audio filters in Discord Player
Discord Player supports various audio filters. There are 4 types of audio filters in discord-player.
FFmpeg
The most common and powerful method is FFmpeg. It supports a lot of audio filters. To set ffmpeg filter, you can do:
Note that there can be a delay between filters transition in this method.
Equalizer
This equalizer is very similar to Lavalink's 15 Band Equalizer. To use this, you can do:
There is no delay between filter transition when using equalizer.
Biquad
This filter provides digital biquad filterer to the player. To use this, you can do:
There is no delay between filter transition when using biquad filters.
Resampler
This filter provides resampling to the player. This filter is identical to await queue.filters.ffmpeg.toggle(..)
with vaporwave
or nightcore
filters. To use this, you can do:
There is no delay between filter transition when using resampler.
Other Filters
This is another type of audio filters provider. It currently supports Tremolo
and 8D
filters only. To use this, you can do:
There is no delay between filters transition using this filter.
Seeker
Discord Player has a built-in filter called seeker
. This filter is used to seek the audio forward. To use this, you have to explicitly enable it via nodeOptions
:
Invoking queue.node.seek()
will use this filter to seek the audio forward. When seeking backwards, the player will fall back to the default behavior of seeking (using FFmpeg).
Reverb Filter
This filter provides reverb to the player. To use this, you can do:
There is no delay between filter transition when using reverb filter.
Compressor Filter
This filter provides compressor to the player. To use this, you can do:
There is no delay between filter transition when using compressor filter.