FFmpeg with custom parameters in Discord.js
Installation:
npm install discord.js-arbitrary-ffmpeg
Example usage:
const Discord = ;const playArbitraryFFmpeg = ; const objBot = ; // ... login and connect to a voice channel so you get a voice connection ... // These params will play a sound file in a much faster speed.// Standard KHz rate is 44.1.let arrFFmpegParams = '-i' 'sounds/funny-meme-sound.mp3' '-filter:a' 'asetrate=r=66K'; const objStreamDispatcher = ;