Skip to content

Instantly share code, notes, and snippets.

@onyx-and-iris
Created January 26, 2024 17:00
Show Gist options
  • Save onyx-and-iris/1223e18cf99ef16b2413af1a8cdb0a02 to your computer and use it in GitHub Desktop.
Save onyx-and-iris/1223e18cf99ef16b2413af1a8cdb0a02 to your computer and use it in GitHub Desktop.
Voicemeeter Launcher
import logging
import os
import subprocess
import time
from pathlib import Path
import voicemeeterlib
logging.basicConfig(level=logging.DEBUG)
def run_voicemeeter():
"""Run Voicemeeter (32|64)bit, use -h flag to disable the GUI."""
vm_path = (
Path(os.environ["ProgramFiles(x86)"])
/ "VB"
/ "Voicemeeter"
/ f"voicemeeter8{'x64' if BITS == 64 else ''}.exe"
)
subprocess.Popen([vm_path, "-h"])
time.sleep(1)
KIND_ID = "potato"
BITS = 64
run_voicemeeter()
with voicemeeterlib.api(KIND_ID) as vm:
"""do cool stuff"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment