2024-11-13 18:26:50 +01:00
2024-08-07 16:00:41 +02:00
2024-11-13 18:25:29 +01:00
2024-11-13 18:25:29 +01:00
2024-11-13 18:25:29 +01:00
2024-08-25 23:01:58 +02:00
2024-11-13 18:25:29 +01:00
2024-11-13 18:25:29 +01:00
2024-11-13 18:25:29 +01:00
2024-11-13 18:25:29 +01:00
2024-07-07 18:48:34 +02:00
2024-07-07 18:48:34 +02:00

Discord Audio Stream

npm GitHub package.json version GitHub Repo stars

This NPM package was created to make it easier to stream audio to Discord.

There is a security feature of discord that stops the stream of audio after some time. This problem can be solved by disconnecting the Discord channel every 1.5 hours for 2 seconds and then reconnecting the channel. (If you use this package!) I recommend using a database to store the data e.g. MySQL, SQLite, json file and other database types.

The package does not fix this error yet. However, it is currently being worked on!

This module is designed to work with discord.js v14. This package doesn't support older versions!

👋 Support

Please create an issue on github or write fraujulian on discord!

📝 Usage

Install package

npm i discord-audio-stream

Code Snippet - Start

const AudioStream = require("discord-audio-stream");

AudioStream.startAudio({
    VoiceChannelID: 0, //Integer | voice channel id | e.g. interaction.member.voice.channel.id
    GuildID: 0, //Integer | guild id | e.g. interaction.guild.id
    VoiceAdapter: 0, //Integer | aoice adapter creator | e.g. interaction.guild.voiceAdapterCreator
    Type: "", //String | choose the Audio Resource | File or Link
    Resource: "", //String | audio stream link or file location | e.g. https://synradiode.stream.laut.fm/synradiode
})

Code Snippet - Stop

const AudioStream = require("discord-audio-stream");

AudioStream.stopAudio({
    GuildID: 0, //Integer | guild id | e.g. interaction.guild.id
})

Code Snippet - Set Max Listeners

const AudioStream = require("discord-audio-stream");

AudioStream.setMaxAudioListeners({
    GuildID: 0, //Integer | guild id | e.g. interaction.guild.id
    MaxListeners: 0, //Integer | max Listeners | e.g. 30
})

📋 Credits:

~ FrauJulian.

🤝 Enjoy the package?

Give it a star on github!

S
Description
🖼️ NodeJs library for discord to make 24/7 audio streaming easier.
https://www.npmjs.com/package/discord-audio-stream Readme AGPL-3.0
5.3 MiB
Languages
TypeScript 86.9%
JavaScript 13%