Giter Site home page Giter Site logo

discord-screen-share-fix-audio-on-linux's Introduction

Discord Screen Share Fix Audio on Linux

No need too much bla-bla lets just get it over with.

Requirements

  • pulseaudio: This thing is our savior. Usually comes pre-installed. If not then probably your system is using something else so better not use this script than breaking your system by replacing your current one with pulseaudio, this script is for pulseaudio only.
  • pavucontrol-qt: To configure input and output from mic and app into discord. Very useful tool for routing your audio.

Setting Up

Just run the script:

./discord-scrshrwa.sh

chmod +x it first if it's not executable yet.

And then boot up discord, hop in a VC and start streaming. It's that ez, so simple right.

hol' up, it's not done yet

Now you're in a vc and streaming some hanime with no audio, your friends and gfs that are watching are complainin in the background as you're doing these:

Open pavucontrol-qt and find your browser/game in Playback tab and set its playback on app, and then go to the Recording tab and find something like WEBRTC VoiceEngine :recStream and set its source to Monitor of mic+app.

Anddddddd Done

Close (or don't) pavucontrol-qt.

Go back to discord, unmute yourself and continue your hanime and watch together with everyone, safe and sound.

Tips

  • You can mute your mic in pavucontrol-qt.
  • Try setting discord input sensitivity to -100dB(or -99dB if you want the indicator to show when your audio is inactive) on discord settings.
  • If you wanna remove the virtual streams, run
pactl unload-module <number>

where <number> is one of the script's terminal output. Do it once for each number. If you forget the numbers, run

pactl list

and find the virtual streams number.

  • If discord ever prompt you to switch audio device, don't switch!
  • If you don't want to run the script every time you boot up your PC, copy the codes from the script (exclude the first line) and append it to your /etc/pulse/default.pa, make sure to remove the pactl prefix from each line.
  • There's pavucontrol which uses GTK, if you have display issue with pavucontrol-qt you might want to use that.

Issues

  • If discord crashes when streaming, ignore it. Try streaming again, usually only one time crash.

Tested in

  • Manjaro Linux (Arch)
  • Ubuntu 20.04
  • Arch Linux x86_64
  • Void Linux

discord-screen-share-fix-audio-on-linux's People

Contributors

locness3 avatar neko-life avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cataclym meow464

discord-screen-share-fix-audio-on-linux's Issues

Recording tab no longer switching to "app" or "mic+app"

Program was working perfectly on PopOS! 22.04 without issue.

Something appears to now have changed (maybe something got updated) and whilst I can switch the playback option to 'app' and 'mic+app' the recording tab can display the option to select these but won't actually allow me to switch, either during playback or outside of it.

QjackCtl is showing everything looks routed just fine, but PulseAudio-qt just won't allow me to select what's clearly on display.

Again, not sure if this is an issue with the discord-scrshrwa.sh script or just a more general issue with PulseAudio itself now.

Weird audio feedback?

After I appended the script to /etc/pulse/default.pa, I started having audio issues with feedback pop up, seemingly at random. Either I'll start hearing an echo of myself, or I'll hear a loud feedback noise (even if audio is coming through headphones and my microphone shouldn't be able to pick it up). As of now, I don't know how to intentionally trigger either one.
I'm not sure about the echo, but the feedback noise seems more likely to happen when I've changed something about my audio input or output, like when I unplug a microphone or disconnect my bluetooth earbuds.

I'm not 100% sure the script caused this, but I don't think this happened before I started using it, and I don't know what else it could be.

Works randomly

I was using your commands for so long on KDE... and then even on two window manager installations. Suddenly since the last installation (exact install as a wm i used earlier), it works only at random sessions. Any idea what could be going wrong here? Really wish to debug this

cool but

If i am transmitting audio, then people talking to me cut out on my end which is bad and unfortunate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.