A Python script that mutes and unmutes your microphone, via hotkey or Macro!
This program will mute and unmute your microhpone via a hotkey or a macro key. You will need python for this program and was created using Python 3.9.5 although the latest update should work!
Download here: https://www.python.org/downloads/windows/
The default hotkey to Mute/ Unmute is ctrl + enter
You will need to confugre the microphone in order to use this program, see ...
- Extract .zip
- Run setup.py
- Double check that all files where moved to
C:\Py_Ormolu\MuteOnMuteOff
By Default the Program will be added to start menu and set to boot on power up, if this is not wanted follow Manual Install
- Create Folder path
C:\Py_Ormolu\MuteOnMuteOff
- Extract .zip contents to above path
- If user wants the program to startup with Windows:
Copy the shortcut located under:
C:\Py_Ormolu\MuteOnMuteOff\support_files\startup
Then move it to the following path:
AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Find AppData on your device by pressing the keysWin + R
- If the user wants the program to be added to the Start Menu
Copy the shortcut located under:
C:\Py_Ormolu\MuteOnMuteOff\support_files\start_menu
Then move it to the following path:C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs
- Install the requirements by opening a Command Prompt Window
pip install pillow
pip install keyboard
pip install pystray
pip install progressbar2
This section will cover setting up the program for your use.
In this example we are configuring the Microhpone called Focusright Usb Audio
- Open Windows Sound Control Panel; Start > Control Panel > Hardware and Sound > Sound > Recordings tab
- Take note of the exact spelling which microphone you would like this program to use
Only use the second line, here we should use Focusright Usb Audio as the text
- Navitage to C:\Py_Ormolu\MuteOnMuteOff in Windows explorer
- Right click on config.cfg and open with, scroll down and select Notepad
- Scroll down under "Configuration:" and change the microhpone name fetched earlier after MICROPHONE_TO_USE:
- Save the file.
The default hotkey for the program is ctrl + enter, If you would like to change this:
- Navitage to C:\Py_Ormolu\MuteOnMuteOff in Windows explorer
- Right click on config.cfg and open with notepad, scroll down and select Notepad
- Scroll down under "Configuration:" and append after KEYBOARD_HOTKEY: the keys/key you would like to use
Enter the keys you would like to use exactly as seen on your keyboard, with a + inbetween then if you have multiple keys you would like to use. The text entered should all be in lower case.
Following these instructions above the default ctrl + enter
Is changed to shift + 1
A second hotkey can be configured if needed, it is confirable in the same configuration file, under the name SECOND_KEYBOARD_HOTKEY:
By defualt it is f24
A keyboard with Macro keys can be used, however to use for best pracrices the key needs to be assigned to a unique keyboard key. If possible assign your macro key to be f24, as this is already assigned in the program.
This program utilises Sound Volume view by Nirsoft in order to control the microphone. https://www.nirsoft.net/articles/mute_microphone_command_line.html