I’ve hacked around this using Pipewire. I used qJackCtl to route the audio output of my game into Discord’s audio input. Suboptimal, because people will hear my audio regardless of whether they joined the video stream or not, but not it worked for the scenarios I needed it to work for.
Discord will need to fix their code on Linux if they want to support this stuff out of the box. Pipewire supports streaming application audio just fine, but that doesn’t matter if Discord doesn’t implement it.
Kind of the same deal with Zoom and video sharing on Linux: they decided to use the wrong API (screenshot API) so there’s no way for the rest of the platform to fix their limitations.
I have discord installed from the flatpak. Screen sharing works but it doesn’t share audio from the applications. Discord-screenaudio and web browser discord have been suggested to me but they don’t work with unfocused push to talk. I’ve also tried xwaylandvideobridge but that didn’t stream the audio either.
I’m assuming this is a “dedicated app” (i.e. apt install discord). I was capable of streaming the video, but sound was a different beast. Audio streaming on discord was a no go. I was finally able to do it with pipewire and using discord-screenaudio
Discord doesn’t support steaming desktop audio when screen sharing on Linux. They do on other platforms and there’s no technical reason why they do t support it, they just don’t seem to care all that much.
Oh nice! I wonder if this will fix discord streaming audio?
Nope. This will only be fixed when Discord gets their head out of their ass, unlikely to happen soon.
I’ve hacked around this using Pipewire. I used qJackCtl to route the audio output of my game into Discord’s audio input. Suboptimal, because people will hear my audio regardless of whether they joined the video stream or not, but not it worked for the scenarios I needed it to work for.
Discord will need to fix their code on Linux if they want to support this stuff out of the box. Pipewire supports streaming application audio just fine, but that doesn’t matter if Discord doesn’t implement it.
Kind of the same deal with Zoom and video sharing on Linux: they decided to use the wrong API (screenshot API) so there’s no way for the rest of the platform to fix their limitations.
Can you describe the issue? I don’t use Discord (and I presume the problem might depend on what browser you use).
I have discord installed from the flatpak. Screen sharing works but it doesn’t share audio from the applications. Discord-screenaudio and web browser discord have been suggested to me but they don’t work with unfocused push to talk. I’ve also tried xwaylandvideobridge but that didn’t stream the audio either.
I’m assuming this is a “dedicated app” (i.e. apt install discord). I was capable of streaming the video, but sound was a different beast. Audio streaming on discord was a no go. I was finally able to do it with pipewire and using discord-screenaudio
https://github.com/maltejur/discord-screenaudio
Jaysus, I wish this were a world where stuff like that wasn’t necessary.
Uneducated question: what’s the benefit of a dedicated client over running it in a normal browser?
Discord doesn’t support steaming desktop audio when screen sharing on Linux. They do on other platforms and there’s no technical reason why they do t support it, they just don’t seem to care all that much.