Discord Player
Filters

Adding custom audio filters

Learn how to add custom audio filters in Discord Player

Audio filters in Discord Player are FFmpeg audio filters. You can add your own audio filter like this:

custom_filter.js
const { AudioFilters } = require('discord-player');
 
AudioFilters.define('3D', 'apulsator=hz=0.128');
 
// later, it can be used like this
queue.filters.ffmpeg.toggle('3D');