Created
January 26, 2024 17:00
-
-
Save onyx-and-iris/1223e18cf99ef16b2413af1a8cdb0a02 to your computer and use it in GitHub Desktop.
Voicemeeter Launcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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