Speech Analysis Module (SAM)
Speech Analysis Module is a modular Python library designed to simplify audio preprocessing, feature extraction, visualization, and recording in experimental and clinical psychology settings.
This package provides ready-to-use functions for:
Recording audio
- Compatible with USB microphones and Arduino triggers
- Includes classes for simple and Arduino-synced recordings
Preprocessing audio
- Bandpass filtering and noise gating
- Silence trimming and duration standardization
Analysis
- Onset detection
- Power spectral density (PSD) via STFT or Welch’s method
- Envelopes, frequency analysis, and energy-based features
Visualization
- Oscillograms
- Spectrograms
- PSD curves in both dB and linear scale
Features
-Integrated analysis with Praat via Parselmouth: Automatic extraction of pitch, jitter, shimmer, harmonicity (HNR), and other acoustic biomarkers from speech recordings
-Acoustic and spectral feature extraction with librosa: Includes MFCCs, spectral centroid, spectral bandwidth, spectral contrast, spectral rolloff, zero-crossing rate, RMS energy, chroma features, and tonal centroid features (tonnetz)
Structure
speech_analysis_module/
│
├── analysis/ # Core signal processing (onsets, PSD, Welch)
├── plot/ # Visualization functions (waveforms, spectrograms)
├── prepro/ # Preprocessing utilities (filters, trimming, noise gate)
├── utils/ # File I/O, transcription (Whisper), helper functions
├── psychopy/ # Recording classes for PsychoPy experiments
└── features/ # (Coming soon) Feature extraction for voice analysis
## Installation
You can install SAM directly from PyPI:
```bash
pip install speech-analysis-module
Metadata
Release files for speech-analysis-module 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| speech_analysis_module-0.0.4.tar.gz | 913.4 kB | Without provenance | Details for speech_analysis_module-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| speech_analysis_module-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for speech_analysis_module-0.0.4-py3-none-any.whl |
Total release size: 1.8 MB
Release files / speech_analysis_module-0.0.4.tar.gz
| Download URL | speech_analysis_module-0.0.4.tar.gz |
|---|---|
| Size | 913.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd049edf7bbaa24fa93e16018c19286d31a1f8badfd44d672094f3e8c945d837
|
|
BLAKE2b-256 checksum How to use checksums |
aa5646b9ce087e90524a1239879958c9a8a315ccf4f971c5727dbb0deb7acb45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / speech_analysis_module-0.0.4-py3-none-any.whl
| Download URL | speech_analysis_module-0.0.4-py3-none-any.whl |
|---|---|
| Size | 912.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31e85e3a4135132dc4ef98ddcc13a4f95e5d280380ec7d95eb9ae13c599891ad
|
|
BLAKE2b-256 checksum How to use checksums |
08ea4002be9d8634ec960acac057132e10976c6c2368b89dc2a3ce82e0fc9777
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for speech-analysis-module 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.