teams-for-linux icon indicating copy to clipboard operation
teams-for-linux copied to clipboard

Share sound from your computer

Open luiser8 opened this issue 2 years ago • 11 comments

You can include audio from your device while you're sharing content in a meeting. You'll want to do this if you're playing a video as part of a presentation, for example. Read on to learn how. https://support.microsoft.com/en-au/office/share-sound-from-your-computer-in-microsoft-teams-meetings-or-live-events-dddede9f-e3d0-4330-873a-fa061a0d8e3b#:~:text=Select%20Share%20Tray%20%3E%20Screen%2C%20window,coming%20from%20the%20entire%20computer.

Desktop (please complete the following information): OS: Fedora 38 KDE Plasma 5.27.6 Installation .rpm Version latest

luiser8 avatar Aug 03 '23 12:08 luiser8

May be not be easy but will have a try on this.

jijojosephk avatar Aug 07 '23 18:08 jijojosephk

Any updates on this? This is an important feature.

Alex-Bujorianu avatar Nov 09 '23 12:11 Alex-Bujorianu

You can include audio from your device while you're sharing content in a meeting. You'll want to do this if you're playing a video as part of a presentation, for example. Read on to learn how. https://support.microsoft.com/en-au/office/share-sound-from-your-computer-in-microsoft-teams-meetings-or-live-events-dddede9f-e3d0-4330-873a-fa061a0d8e3b#:~:text=Select%20Share%20Tray%20%3E%20Screen%2C%20window,coming%20from%20the%20entire%20computer.

Desktop (please complete the following information): OS: Fedora 38 KDE Plasma 5.27.6 Installation .rpm Version latest

I would also "up vote" for it. In my case the desktop app was not much of a use in a presentation because of this issue. One can do this in PWA. I would say this is not even an "enhancement", rather a very necessary feature!

Thanks all for the valuable work!

mahihossain avatar Dec 01 '23 07:12 mahihossain

can any of you confirm if this works in the web version?, If it does, it might be some electron shenanigans.

IsmaelMartinez avatar Dec 12 '23 22:12 IsmaelMartinez

can any of you confirm if this works in the web version?, If it does, it might be some electron shenanigans.

Yes, I can confirm that. In web version, when you share there is a toggle button also to share the sound of any opnened tab in the browser. So if you have a video or audio in a presentation opened in the browser, you can share it and the sound would be shared.

However the browser doesn't allow you to share sound from other windows outside of the opened browser tabs. So if you are presenting from you computer you can not share your sound. In that case the toggel button is there but disabled. That a is pain but it is better that having no option at all.

In the Mac or Windows desktop app one can share all the sounds one wants! In the linux desktop app there is no toggle button for it. I have tried to give the app all the permissions...it still doesn't have any button which says "include system sound". That would be great inhancement in my opinion.

mahihossain avatar Dec 13 '23 06:12 mahihossain

I suspect that then sharing the teams-for-linux will share your sound, but nothing else. I suspect is a permissions issue not allowing to get hold of the sound that is outside of the window context. But this is just a wild guess.

IsmaelMartinez avatar Dec 18 '23 10:12 IsmaelMartinez

I hope they can add this functionality that exists in the web version. It is very helpful for these cases of sharing the screen and we need system audio.

luiser8 avatar Dec 18 '23 17:12 luiser8

This might be possible, as we did phase some "echo" issues when implementing the new version of screenshare for wayland. If someone wants to play around this, https://github.com/IsmaelMartinez/teams-for-linux/pull/1077 fixed the echo. Maybe we can add a menu option that enables the sharing the screen audio, but will need to handle the echo.

IsmaelMartinez avatar Jan 23 '24 10:01 IsmaelMartinez

I just spent a few mins playing around with the audio settings that I switched off in #1077 and while I can recreate the nice echo effect it does not appear to be able to capture system audio. So no reason to ever switch these on in teams-for-linux really. This is presumably because the audio is generated from a separate application. Teams in the browser allows this because it's the browser that's producing the sound in the first place - it's all the same application.

What does work though is using pipewire to route the output from one application to the teams-for-linux input. This obviously only works if you're using pipewire for you audio system but this seems to be pretty standard these days. When in a teams meeting if you open something like qpwgraph you can manually route the audio from e.g. your browser to the teams-for-linux input (shows up as chromium input) - just click and drag to create a link. image Also, this works regardless of whether you're sharing you're screen or not. You could just share some audio if you liked.

It's possible this is something that could be automated from within teams-for-linux. e.g. using the pipewire socket directly or cli tools - pw-link ?

herbiejhopkins avatar Jan 28 '24 16:01 herbiejhopkins

I'm confused about the state and goal: Since a few releases i cannot share my screen anymore because of an echo in my sound. Is there a way to fix this with a current release or not?

As nice as it may seem to also share the sound from the computer, don't you all think that basic screen sharing with the ability to talk is more important?

Anyway, i'm grateful for this project and would like to know if there is some setting to disable this? If not, i'll have to stay with 1.4.2.

buster avatar Feb 23 '24 06:02 buster

This issue in wayland was fixed by @herbiejhopkins So the latest versions should work.

jijojosephk avatar Feb 23 '24 10:02 jijojosephk

closing due inactivity

IsmaelMartinez avatar Mar 21 '24 10:03 IsmaelMartinez