frgnca / AudioDeviceCmdlets

AudioDeviceCmdlets is a suite of PowerShell Cmdlets to control audio devices on Windows
MIT License
737 stars 92 forks source link

Request: control microphone (eg. mute) #42

Closed SpitFire-666 closed 2 years ago

SpitFire-666 commented 3 years ago

Would be awesome to have the ability to mute the microphone.

Currently I either have to do it via GUI (fiddly) or have access to the laptop keyboard and hit an awkward key combo. There's also no quick/easy way to check if it's muted within Windows.

Thanks

dakota-mewt commented 3 years ago

Hi, I have a project that utilizes AudioDeviceCmdlets to do exactly what you are suggesting. The project (Mewt) interfaces with a physical button and an RGB LED via microcontrollers (Arduino, MicroBit) for the control and status feedback.

https://github.com/dakota-mewt/mewt

frgnca commented 2 years ago

Would be awesome to have the ability to mute the microphone.

It should be possible with the following command

Set-AudioDevice -RecordingMute $true # Sets the default recording device's mute state to the given <bool>