Skip to content

About

A Python script which displays the status of a Voicemeeter input in the system tray.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VoicemeeterMicIndicator

A Python script which displays the status of a Voicemeeter input in the system tray.


This script shows the current mute state of a Voicemeeter input on your taskbar using a system tray icon. The state is monitored and updated in real-time by interacting with the Voicemeeter API through the

Python Voicemeeter API.


Function:

The Python script registers a listener event for a keypress (in my case, F24 mutes the input using Voicemeeter's Macro Buttons), and uses the API to confirm as such, before updating the icon on the system tray.

This script uses the following libraries:

  • voicemeeterlib
  • pystray
  • Pillow
  • keyboard

Customization:

  • Icons: You can replace the icons for the mute/unmute states (must be 64x64 PNG images).
  • Input & Hotkey: You can change the monitored input and customize the key being watched for toggling mute in the Python script.

Change Input:

def get_microphone_mute_state(vm):
    #replace 'strip-0' with the correct strip for your microphone
    return vm.strip[0].mute

Change Hotkey:

def monitor_hotkey():
    last_time = 0
    debounce_time = 0.5
    while True:
        if keyboard.is_pressed('f24'):
            current_time = time.time()
            if current_time - last_time > debounce_time:
                toggle_mode(icon, None)
                last_time = current_time
        time.sleep(0.01)

Usage:

Install required libraries:

pip install voicemeeter-api pystray pillow keyboard

Ensure Voicemeeter is running.
Run MicIndicator.py.

Optional Usage:

If you desire, you can package the script into an exe (for running in background or on startup):

pyinstaller --onefile --windowed --add-data "muted.png;." --add-data "unmuted.png;." --icon "icon.ico" MicIndicator.py

button

About

A Python script which displays the status of a Voicemeeter input in the system tray.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages