AudioFilters
Utility class for managing FFmpeg audio filter definitions. Provides built-in filters and methods to create, validate, and manage custom audio filters.Static Properties
Collection of all available FFmpeg filter definitions. Built-in filters include:Bass Filters:
bassboost_low- Low bass boost (15dB)bassboost- Medium bass boost (20dB)bassboost_high- High bass boost (30dB)subboost- Subwoofer boost
8D- 8D audio effect (pulsator)vaporwave- Vaporwave effect (slowed audio)nightcore- Nightcore effect (sped up audio)lofi- Lo-fi effect (slowed with extra stereo)phaser- Phaser effecttremolo- Tremolo effectvibrato- Vibrato effectreverse- Reverse audioflanger- Flanger effecthaas- Haas effect
treble- Treble boostnormalizer- Audio normalization (compressor)normalizer2- Dynamic audio normalization
surrounding- Surround soundpulsator- Pulsator effectkaraoke- Karaoke effect (reduce vocals)mono- Convert to monomstlr- Mid-side to left-rightmstrr- Mid-side to right-right
gate- Audio gatemcompand- Multi-band compressorcompressor- Dynamic range compressorexpander- Dynamic range expandersoftlimiter- Soft limiter
chorus- Chorus effectchorus2d- 2D chorus effectchorus3d- 3D chorus effect
fadein- Fade in effectdim- Dim/muffle effectearrape- Earrape effect (extreme distortion)silenceremove- Remove silence
Array of all filter names
Number of available filters
Static Methods
get
Retrieve the FFmpeg filter string for a specific filter.The name of the filter to retrieve
The FFmpeg filter string, or the input name if not found
has
Check if a filter name exists.The filter name to check
true if the filter exists, false otherwisecreate
Create FFmpeg filter arguments from filter names.Array of filter names to combine. If not provided, returns all filters
Comma-separated FFmpeg filter string ready to use with
-af flagdefine
Define a new custom audio filter.The name for the new filter
The FFmpeg filter string
defineBulk
Define multiple custom filters at once.Array of filter definitions with
name and value propertiestoString
Convert all filters to a single FFmpeg filter string.Comma-separated string of all filter values
[Symbol.iterator]
Makes AudioFilters iterable over all filter definitions.Iterator yielding objects with
name and value propertiesTypes
FiltersName
Type representing all valid filter names.QueueFilters
Interface defining all available FFmpeg filters.Usage Example
Related
- GuildQueueAudioFilters - Audio filters manager for queues
- StreamDispatcher - Stream dispatcher for audio playback