boppleopple
DIAdiscord.js - Imagine an app
•Created by boppleopple on 12/17/2023 in #djs-voice
piping from udp stream into an audio resource
hello! i've been trying to write a bot to pipe desktop audio to a discord bot over udp (i use linux so this is my jank workaround to not having screen share audio), and i've settled on using dgram to open a udp socket and running ffmpeg locally to push to it (the full command is
ffmpeg -f pulse -i default -f opus "udp://127.0.0.1:3756"
, and the local ip is fine for now since both the stream and bot are running on the same machine).32 replies