© 2026 Hedgehog Software, LLC
receiver.speaking.on("start", (userId) => { const opusStream = receiver.subscribe(userId, { end: { behavior: EndBehaviorType.AfterSilence, duration: 1000, }, }); const resource = createAudioResource( createReadStream(opusStream, { inputType: StreamType.OggOpus, }) ); const player = createAudioPlayer(); player.play(resource); connection.subscribe(player); });
Join the Discord to ask follow-up questions and connect with the community
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,666 Members