Skip to main content

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

  1. Clone this repository
  2. 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:

  1. Continuously captures audio from your microphone
  2. Processes the audio in real-time using a sliding window approach
  3. Computes RMS energy and identifies potential sigh patterns
  4. Filters and validates sighs based on duration and energy characteristics
  5. 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)

Source distribution for psy-detector 0.1.0
File Size Uploaded
psy_detector-0.1.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for psy-detector 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page