BartoszCichecki / LenovoLegionToolkit

Lightweight Lenovo Vantage and Hotkeys replacement for Lenovo Legion laptops.
GNU General Public License v3.0
5.04k stars 230 forks source link

Mic Mute/Unmute Action Trigger #845

Open Akronae opened 1 year ago

Akronae commented 1 year ago

Rules

Version

2.14.1

OS

Windows 11

Device

Legion Pro 7 16IRX8

Is your feature request related to a problem?

I'm using Fn + F4 to mute/unmute my mic in a "Push to talk" fashion when I'm in meetings.
Most of the time I will forget if my mic is muted or not.
I would like to have my keyboard backlight show a very bright red when my mic is unmuted.

How would you like the problem to be solved?

I would simply expect a Microphone Mute / Microphone Unmute trigger in the Actions.

What alternatives have you considered?

Having some custom script/3rd party apps. Would feel messy.

Additional information

No response

BartoszCichecki commented 1 year ago

Interesting idea! I will take a look into that in the near future, could definitely use it myself lol

seerge commented 1 year ago

You can use NAudio to control mute for currently active recording device as i do in G-Helper : https://github.com/seerge/g-helper/blob/main/app/Helpers/Audio.cs#L7 :)

(but NAudio is quite heavy to embed tho)

BartoszCichecki commented 1 year ago

I already have NAudio - i use it for muting. There isn't a good way to monitor when new mics are connected which is problematic.

Akronae commented 1 year ago

Kind of a hack, but listening to the device "noise" wouldn't be enough to assume that the mic is enabled if noise > 0 ?
(Granted catching the mic stream would not interfeer with anything else of course)

image

Another option (which I think has many other usecases) would be to listen to function keys strokes, is that possible? Or is it directly handled by Lenovo hardware without Windows ever knowing it?

Btw, before I install all of my drivers, I would not have the mute/unmute icon, so I guess there are definitely some signals Lenovo UI is catching

image
Nollasko commented 9 months ago

@BartoszCichecki Since my laptop has only one backlight colour, I would like to receive a sound signal when it is switched on and off

BartoszCichecki commented 9 months ago

Credits are updated already 😎