Simple program to send stereo audio (microphone, stereo mix, virtual audio cable, etc) into a discord bot.
You can download the latest release here
main.pyw
.exe
does not require python or dependenciestoken.txt
in the same directory as the .exe
/ main.pyw
and save the bot token insideRequires Python 3.8+. Install dependencies by running pip3 install -r requirements.txt
In some cases PortAudio and xcb libraries may be missing on linux. On Ubuntu they can be installed with
$ sudo apt-get install libportaudio2
$ sudo apt-get install libxcb-xinerama0
macOS requires PortAudio and Opus libraries
$ brew install portaudio --HEAD
$ brew install opus
Running the .exe
/ main.pyw
without any arguments will start the graphical interface. Alternatively, discord-audio-pipe can be run from the command line and contains some tools to query system audio devices and accessible channels.
usage: main.pyw [-h] [-t TOKEN] [-v] [-c CHANNEL] [-d DEVICE] [-D] [-C]
Discord Audio Pipe
optional arguments:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
The token for the bot
-v, --verbose Enable verbose logging
Command Line Mode:
-c CHANNEL, --channel CHANNEL
The channel to connect to as an id
-d DEVICE, --device DEVICE
The device to listen from as an index
Queries:
-D, --devices Query compatible audio devices
-C, --channels Query servers and channels (requires token)