Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

186
Vistas
Is it possible to alter an audio stream using discord.js

I just want to be able to change the pitch, bass, speed and possibly volume when playing music through my bot.

I have looked at using ffmeg and modifying the datastream so help on that would also be nice.

playDl.stream(musicQueue[0]).then((value) => {
    music = {
        "url": musicQueue[0],
        "resource": discordVoice.createAudioResource(value.stream, {inputType: value.type, inlineVolume: true}),
        "player": discordVoice.createAudioPlayer({behaviors: {noSubscriber: discordVoice.NoSubscriberBehavior.Play}}),
        "connection": discordVoice.joinVoiceChannel({
            channelId: message.member.voice.channelId,
            guildId: message.channel.guild.id,
            adapterCreator: message.channel.guild.voiceAdapterCreator
        })
    }
    const current = music;
    music["player"].play(music["resource"]);
    music["connection"].subscribe(music["player"]);
    music["player"].on(discordVoice.AudioPlayerStatus.Idle, () => {
        if (!(current["connection"].state.status == "disconnected" || current["connection"].state.status == "destroyed")) {
            if (musicLoop == true) {
                musicQueue.push(music["url"]);
            }
            commands["resume"]["method"](message);
        }
    });
    musicQueue.shift();
    message.channel.send("Resumed playing music");
})
about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda