Applying Filters
Filters are applied using theWithFilters() option:
Available Filters
Volume
Adjust the player volume (independent of the player volume setting):Equalizer
Adjust 15 bands of frequencies:- Bass Boost
- Treble Boost
- Flat (Reset)
| Band | Frequency |
|---|---|
| 0 | 25 Hz |
| 1 | 40 Hz |
| 2 | 63 Hz |
| 3 | 100 Hz |
| 4 | 160 Hz |
| 5 | 250 Hz |
| 6 | 400 Hz |
| 7 | 630 Hz |
| 8 | 1 kHz |
| 9 | 1.6 kHz |
| 10 | 2.5 kHz |
| 11 | 4 kHz |
| 12 | 6.3 kHz |
| 13 | 10 kHz |
| 14 | 16 kHz |
Timescale
Change speed, pitch, and rate:- Nightcore Effect
- Slowed + Reverb
- Chipmunk Voice
Speed: Playback speed (0.0 < x)Pitch: Pitch shift (0.0 < x)Rate: Audio rate (0.0 < x)
Tremolo
Create a trembling/vibrating effect by changing volume:Frequency: 0.0 < x (recommended: 0.1 - 10.0)Depth: 0.0 < x ≤ 1.0
Vibrato
Create a vibrating effect by changing pitch:Frequency: 0.0 < x ≤ 14.0Depth: 0.0 < x ≤ 1.0
Rotation
Create an 8D/rotating audio effect:- 0: No rotation
- 5: Slow rotation (8D effect)
- 10: Medium rotation
- 20+: Fast rotation
Karaoke
Remove or isolate vocals:Level: Overall effect levelMonoLevel: Mono signal levelFilterBand: Center frequency (Hz)FilterWidth: Band width (Hz)
Distortion
Add distortion to the audio:Channel Mix
Mix left and right channels:- Mono
- Swap Channels
- Left Only
LeftToLeft: Left input to left outputLeftToRight: Left input to right outputRightToLeft: Right input to left outputRightToRight: Right input to right output
Low Pass
Suppress higher frequencies:- 20.0: Light filtering
- 50.0: Moderate filtering
- 100.0: Heavy filtering
Plugin Filters
Some Lavalink plugins add custom filters:Combining Filters
You can apply multiple filters simultaneously:Removing Filters
To remove all filters:Practical Examples
Bass Boost Command
Nightcore Effect
8D Audio Effect
Soft Audio (Low Pass)
Getting Current Filters
Retrieve the currently applied filters:FAQ
FAQ
Next Steps
Plugins
Extend functionality with Lavalink plugins
Error Handling
Handle filter application errors