A real-time sigh detection system using audio processing
Project description
Psy Detector
Writing a thesis, working on a manuscript, track your anxitety. A Python application that detects and counts sighs in real-time using your microphone. The application continuously monitors audio input to identify sigh patterns based on their acoustic characteristics.
Installation
From PyPI (Recommended)
pip install psy-detector
From Source
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt
Usage
Run the application to start monitoring your microphone:
psy-detector
Options
--min-duration: Minimum duration of a sigh in seconds (default: 0.5)--max-duration: Maximum duration of a sigh in seconds (default: 2.0)--threshold: Energy threshold for sigh detection (default: 0.3)
Example with custom parameters:
psy-detector --min-duration 0.3 --max-duration 1.5 --threshold 0.25
How it Works
The application:
- Continuously captures audio from your microphone
- Processes the audio in real-time using a sliding window approach
- Computes RMS energy and identifies potential sigh patterns
- Filters and validates sighs based on duration and energy characteristics
- Displays the total count and timestamp of detected sighs
Features
- Real-time monitoring of microphone input
- Configurable detection parameters
- Live display of sigh count and timestamps
- Graceful shutdown with Ctrl+C
Notes
- Make sure your microphone is properly connected and configured
- The application uses a 2-second sliding window for processing
- Press Ctrl+C to stop the monitoring
Supported Audio Formats
The application supports common audio formats including WAV, MP3, and FLAC.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psy_detector-0.1.0.tar.gz.
File metadata
- Download URL: psy_detector-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93ad050aeb44f8a1d03edf85e08a7f1af4f5035afe4245fa0cd328a08694522a
|
|
| MD5 |
138fba5488a710a0afcef6d438f1bc14
|
|
| BLAKE2b-256 |
048cbfa0d45b3dffad52f216bf4947fc9f2bcd8c628c85419c2db3614cf8a2ab
|
File details
Details for the file psy_detector-0.1.0-py3-none-any.whl.
File metadata
- Download URL: psy_detector-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25b775b1c1733e132d7cbc4dfaff70968f1cfe7baa318cd53d016c1706682bc4
|
|
| MD5 |
e0faffb904ecb4239b7310f6116ade1a
|
|
| BLAKE2b-256 |
59a3e1cf4c213106ae4d6b5eba591a263cb270154e589f772186b8f21896329f
|