Skip to main content

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)

Source distribution for speech-analysis-module 0.0.4
File Size Uploaded
speech_analysis_module-0.0.4.tar.gz 913.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for speech-analysis-module 0.0.4
File Interpreter ABI Platform
speech_analysis_module-0.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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