element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.28k stars 2.02k forks source link

Separate audio output for notifications/ringing sounds vs calling #14192

Open evmcl opened 4 years ago

evmcl commented 4 years ago

Would it be possible to specify an audio output device used for notifications and such, and a separate audio device to use for video and voice calls?

The use case I'm thinking of using headphones only when on a call, but the laptop/desktop speakers otherwise. It would be ideal if the notification sounds came out through my speakers, but when I make a call it uses the headphones.

Currently I have headphones selected so I can make calls easily, but I don't hear the notification sounds that often as I don't generally wear the headphones unless I'm on a call. I play music and notification sounds from other applications through the speakers.

Maybe only possible on the desktop/electron version?

jryans commented 4 years ago

This seems technically possible, but it'll be low priority for the core team, so we'd likely need someone from the community to work on this.

t3chguy commented 4 years ago

What web API would this be ooi?

jryans commented 4 years ago

Perhaps possible via Web Audio API (unsure), or else it may require something native and desktop only.

sinni800 commented 4 years ago

There should also be a volume control at least for the notification sound.

The default notification sound is ear-piercing on volumes that are just normal for videos, music, etc. I keep turning down Element to like 1/5 of the volume in Windows. But Windows keeps forgetting the per-application-volumes.

I havent found a way to replace the global notification sound (if you just want to keep the same one for everything, just change it globally), maybe I'm just blind though. I would probably export the sound, reduce it's volume in an audio editor and reimport it in that case.

gutoandreollo commented 4 years ago

But Windows keeps forgetting the per-application-volumes

I'll hazard a guess that this is likely due to updates. The update brings a new binary under a different path every time, and causes the firewall rules to need to be updated every time as well.

sinni800 commented 4 years ago

The update brings a new binary under a different path every time

Another reason why I really have a distaste for Electron and it's usual deployment schemes...

rysson commented 3 years ago

Oh, it's must have feature for me, I don't use headset at all if I'm not on call and my headset on desktop is very quiet even for loud sound inside.