Add Python coda detector module (port of MATLAB Coda-detector)#3
Open
CivicDash wants to merge 1 commit intoProject-CETI:mainfrom
Open
Add Python coda detector module (port of MATLAB Coda-detector)#3CivicDash wants to merge 1 commit intoProject-CETI:mainfrom
CivicDash wants to merge 1 commit intoProject-CETI:mainfrom
Conversation
Adds wham/detection/ module providing end-to-end coda detection from raw audio, porting the original MATLAB Coda-detector to pure Python. Pipeline: TKEO click detection → SNR filtering → IPI estimation → waveform cross-correlation → graph-based clustering → deduplication. Dependencies: numpy, scipy (already in setup.py). Includes 20 unit tests covering all pipeline stages. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wham/detection/module that ports the MATLAB Coda-detector to pure Pythonraw audio → detected codassetup.py)What it does
The detector implements the full pipeline from the original MATLAB code:
Usage
Or from the command line:
Why this is useful
WhAM currently works with pre-segmented codas from datasets like DSWP. This module closes the gap between raw field recordings and WhAM's embedding/generation pipeline, allowing users to go from
raw audio → detected codas → WhAM embeddingsin a single Python workflow.Tests
20 unit tests covering all pipeline stages (TKEO, bandpass filter, resampling, click detection, cross-correlation, clustering, deduplication, end-to-end). All passing.
Related
Made with Cursor