MCPcopy Index your code
hub / github.com/QiCuiHub/discord-audio-pipe

github.com/QiCuiHub/discord-audio-pipe @2.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.5 ↗ · + Follow
40 symbols 100 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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)

Core symbols most depended-on inside this repo

setEnabled
called by 7
gui.py
setRowHidden
called by 3
gui.py
resize_combobox
called by 2
gui.py
setEnabled
called by 2
gui.py
set_servers
called by 2
gui.py
close
called by 2
gui.py
change_server
called by 1
gui.py
change_channel
called by 1
gui.py

Shape

Method 30
Class 7
Function 3

Languages

Python100%

Modules by API surface

gui.py30 symbols
sound.py8 symbols
cli.py2 symbols

For agents

$ claude mcp add discord-audio-pipe \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact