aneeshsharma / DiscordAudioShare-Linux

A utility to share audio on discord on linux by routing your desktop audio through your mic.
GNU General Public License v3.0
23 stars 0 forks source link

Discord Audio Share on Linux

A simple utility allowing you to share audio when using discord on linux. This works by routing your application audio and your mic input into a single audio source, which is then used by discord as the input device.

In order to know the pulseaudio name for your devices, try checking the input and output names used on discord. They will be similiar to the ones in pulseaudio.

Installation

Prerequisites

Installing discordaudioshare

Clone this repository to any directory you like

git clone https://github.com/aneeshsharma/DiscordAudioShare-Linux

To install, run install.sh

cd DiscordAudioShare-Linux
chmod +x install.sh
./install.sh

The install script will ask for sudo password.

Run discordaudioshare to launch a rofi prompt asking you to select the application to share audio of.

Now, you can add a hotkey/shortcut using any hotkey utility to discordaudioshare. For example, in sxhkd, you can add the following

# Discord Audio Share
super + a
    discordaudioshare

Uninstall

To uninstall discordaudioshare, clone this repository and run uninstall.sh

git clone https://github.com/aneeshsharma/DiscordAudioShare-Linux
cd DiscordAudioShare-Linux
chmod +x uninstall.sh
./uninstall.sh

Usage

When running discordaudioshare, a prompt shows up asking you to select an application. You can select the application you want to share audio of from there.

Running discordaudioshare again would stop sharing audio.

Scripts

Credits

Special thanks to @hotmonkeywings for writing the share audio script.

The share audio script was referenced and altered from a reddit post here