screen_pyspy is a Python script that captures screenshots when a certain noise level is detected, and it also plays a sound as a notification. This can be useful for various purposes, such as monitoring your workspace.
To use screen_pyspy, you will need the following:
- Python
- sounddevice library (
pip install sounddevice
) - pyautogui library (
pip install pyautogui
) - pygame library (
pip install pygame
) - A virtual audio cable (e.g., VB-Audio Virtual Cable) for correct audio routing.
- Make sure you have installed the required Python libraries.
- Install a virtual audio cable (e.g., VB-Audio Virtual Cable) on your system.
- Place the
screen_pyspy.py
script in your desired directory. - Run the script with Python by executing
python screen_pyspy.py
. - The script will ask you to select an audio device for playback. Choose the appropriate device number and press Enter.
- The script will start monitoring the audio input.
- When the audio input surpasses a certain noise threshold (specified in the script), it will capture a screenshot of your desktop and play a notification sound.
You can customize the following parameters in the screen_pyspy.py
script:
- The folder where screenshots are saved.
- The noise threshold level for capturing screenshots.
- The sound to be played when a screenshot is captured.
- Make sure to install the required libraries and a virtual audio cable for correct functionality.
- The script continuously runs and captures screenshots whenever the noise threshold is exceeded.
This project is licensed under the MIT License. You can find the license details in the LICENSE
file.
Mistkeithy
If you'd like to contribute to this project, please follow the guidelines in the CONTRIBUTING file.