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.
Metadata
Release files for psy-detector 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| psy_detector-0.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psy_detector-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / psy_detector-0.1.0.tar.gz
| Download URL | psy_detector-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93ad050aeb44f8a1d03edf85e08a7f1af4f5035afe4245fa0cd328a08694522a
|
|
BLAKE2b-256 checksum How to use checksums |
048cbfa0d45b3dffad52f216bf4947fc9f2bcd8c628c85419c2db3614cf8a2ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / psy_detector-0.1.0-py3-none-any.whl
| Download URL | psy_detector-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25b775b1c1733e132d7cbc4dfaff70968f1cfe7baa318cd53d016c1706682bc4
|
|
BLAKE2b-256 checksum How to use checksums |
59a3e1cf4c213106ae4d6b5eba591a263cb270154e589f772186b8f21896329f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|