raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.38k stars 3.08k forks source link

[Toggle Audio Input (microphone)] ... #7116

Closed MKReyesH closed 1 year ago

MKReyesH commented 1 year ago

Extension

https://www.raycast.com/Quentin23Soleil/mute-microphone

Description

Very useful extension! I found some potential bugs

1) I assume many people will use this extension to quickly mute the microphone during a videocall. However, some apps like Zoom, do not allow to set the system input volume to zero during a call. If an user starts from (let us say) 100% volume and uses the mute command, instead of zero, it will get 4%. If the user press the mute command again (to recover the 100%), the command will again try to set the input volume to zero, getting again 4%, and trapping the user in a loop. A potential solution is to set the unmuting condition to input_vol<5 instead of input_vol==0.

https://github.com/raycast/extensions/assets/33583170/e78a9bd1-e614-4250-b68a-ed522261e41a

2) The unmute command remembers the last input volume, except when is 100%.

https://github.com/raycast/extensions/assets/33583170/4e18c7e6-3ad1-460a-80d8-17c1d17d5009

Steps To Reproduce

The steps are shown in the description.

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 1 year ago

Thank you for opening this issue!

🔔 @quentin23soleil you might want to have a look.

💡 Tip: Once the issue is resolved, comment @raycastbot close this issue to close it.

quentin23soleil commented 1 year ago

@MKReyesH so two issues here, the 100% not saved is an easy one, no problem. For the 4% stuff, is Zoom preventing to change the volume to 0? Just to understand it right

quentin23soleil commented 1 year ago

Ha! I found something in the zoom settings. I think you have to uncheck the "Automatically adjust microphone volume" for the extension to work properly. It's not actually 4%, Zoom will increase and decrease at will the input volume to find the right volume according to them.

image
MKReyesH commented 1 year ago

Very nice! Thanks for the quick response. This should solve the issue.

quentin23soleil commented 1 year ago

fyi an update is coming for the 100% thing :)