discord_luau/audio
v0.0.2 ·
Discord Luau Audio - A paced audio player and audio sources for discord-luau voice connections.
Plays audio files, streams and raw PCM or Opus in discord-luau voice channels.
Source: packages/audio
Installation
pesde add discord_luau/audio
Example
local audio = require("./luau_packages/audio")
local channel = bot:getVoiceChannelAsync(channelId):await():unwrapOk()
local connection = channel:joinAsync():await():unwrapOk()
local player = audio.player.new(connection)
player:playAsync(audio.fromFile("song.mp3")):await()
channel:leaveAsync():await()
Runs on Zune. The Playing Music guide covers streaming with yt-dlp.
Full documentation at discordluau-docs.devcomp.workers.dev.
Contributing
Contributions are welcome via the repository at github.com/DiscordLuau/discord-luau.
License
This package is licensed under the MIT License.