
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
audio-glitch-detector
Advanced tools
Detect audio glitches and discontinuities in sinusoidal audio signals by analyzing the signal derivative.
Important: This tool is will only work with sinusoidal audio signals.
The algorithm detects discontinuities, so glitches that does not directly produce discontinuities might not be picked up.
It can detect single sample errors in a sine wave. The test files in test_files/
show cases where the algorithm works well.
pip install audio-glitch-detector
git clone https://github.com/kaspernyhus/audio-glitch-detector
cd audio-glitch-detector
uv sync --dev
Analyze a WAV file with automatic threshold:
audio-glitch-detector -f path/to/audio.wav
Monitor live audio stream:
audio-glitch-detector
Save glitch blocks for analysis:
audio-glitch-detector -f audio.wav --save-blocks
see examples/
for usage examples.
When using --save-blocks
, glitch blocks (max 50) are saved as .wav files and with waveform visualizations showing the derivative analysis:
Validate the detector with test files with a known number of discontinuities:
audio-glitch-detector -f test_files/sine_discont_2_mono.wav
Expected output:
Number of discontinuities detected: 2
0:00:01.892857
0:00:03.288367
uv sync --dev
uv run audio-glitch-detector --help
uv run pytest
FAQs
Detect audio glitches and discontinuities in sinusoidal audio signals
We found that audio-glitch-detector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.