Created
May 31, 2023 01:56
-
-
Save idlesign/23797adae3a813f85718cea12e708fd1 to your computer and use it in GitHub Desktop.
This file contains 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
from os import getuid | |
from time import sleep | |
_uid = getuid() | |
p_out = open(f'/tmp/audacity_script_pipe.to.{_uid}', 'w') | |
p_in = open(f'/tmp/audacity_script_pipe.from.{_uid}', 'r') | |
def write(cmd: str): | |
print(f'written: {cmd}') | |
p_out.write(f'{cmd}\n') | |
p_out.flush() | |
write('Record1stChoice') | |
while True: | |
sleep(1.5) | |
write('AddLabelPlaying') | |
write('Paste') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment