Discord Audio Pipe Save

Route computer audio into a discord bot

Project README

discord-audio-pipe

GitHub Workflow Status GitHub release (latest by date)

Simple program to send stereo audio (microphone, stereo mix, virtual audio cable, etc) into a discord bot.

You can download the latest release here

  • If you are using the source code, install the dependencies and start the program using main.pyw
  • The .exe does not require python or dependencies

Setting up a Bot account

  1. Follow the steps here to setup and invite a discord bot
  2. To link the program to your bot, create a file token.txt in the same directory as the .exe / main.pyw and save the bot token inside

Dependencies

Requires 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

CLI

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)
Open Source Agenda is not affiliated with "Discord Audio Pipe" Project. README Source: QiCuiHub/discord-audio-pipe
Stars
144
Open Issues
8
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating