Too Loud Timer is an interactive application that combines real-time audio monitoring with a timer to track noisy periods. Designed for teachers, students, or anyone managing a quiet environment, it starts a timer when noise exceeds a threshold and pauses when the environment becomes quiet. A dynamic frequency visualization adds a visual representation of the noise levels.
-
Audio-Activated Timer:
- Starts when noise exceeds a set threshold.
- Pauses when the noise level drops below the threshold.
- Tracks cumulative noisy time, even across multiple starts and stops.
-
Real-Time Frequency Visualization:
- Displays a bar graph of the sound frequencies for a more intuitive understanding of noise activity.
-
Simple and Customizable:
- Adjustable noise threshold for different environments.
- Clean and user-friendly graphical interface.
- Clone the repository:
git clone https://github.com/WarmMilkCodes/tooloudtimer.git cd too-loud-timer - Install dependencies:
pip install pyaudio numpy
- Run the application:
python too_loud_timer.py
- Launch the application.
- Click Start Listening to begin monitoring ambient noise.
- The timer will start when noise exceeds the threshold and pause when it drops below.
- Observe the real-time frequency visualization for feedback on noise levels.
- Click Stop Listening to pause the app and review the total noisy time.
- Noise Threshold: Adjust the
AUDIO_THRESHOLDparameter in the script to calibrate the sensitivity for different environments. - Frequency Bands: Modify the
NUM_BARSparameter to change the number of frequency bands displayed in the visualization.
- Python 3.x
- Libraries:
pyaudio,numpy,tkinter
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit issues or pull requests.
- Built with
pyaudiofor audio input andtkinterfor the graphical interface. - Inspired by the need for effective noise management in classrooms and workspaces.