Skip to content

AgentMulder404/focus-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎙️ Real-Time Focus Environment Classifier This is a Python application built with Streamlit that uses a machine learning model to analyze your environment's background noise in real-time. It classifies sounds and determines whether your surroundings are "Focus-Friendly" or "Distracting."

✨ Features Real-Time Analysis: Captures audio directly from your microphone.

AI-Powered Classification: Uses a pre-trained model from Hugging Face to identify environmental sounds.

Simple UI: A clean interface to start and stop the analysis.

Instant Feedback: Displays the detected sound, a focus category, and the model's confidence score.

🛠️ Tech Stack Language: Python

UI: Streamlit

AI/ML: Hugging Face Transformers, PyTorch

Audio: Sounddevice, Librosa, SciPy

🚀 How to Run Clone the repository (or download the files).

Create and activate a virtual environment using Python 3.11:

Make sure you have python 3.11 installed (brew install python@3.11)

python3.11 -m venv .venv source .venv/bin/activate

Install PyTorch (IMPORTANT: Do this step separately):

pip install torch torchvision torchaudio

Install the rest of the required dependencies:

pip install -r requirements.txt

Run the Streamlit app:

streamlit run app.py

The application will open in a new browser tab.

About

classifies sounds and volume of sound

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages