feat: add senselab VAD, eGeMAPS, and embedding processors (#566)#1169
Open
Chelsy-AI wants to merge 1 commit into
Open
feat: add senselab VAD, eGeMAPS, and embedding processors (#566)#1169Chelsy-AI wants to merge 1 commit into
Chelsy-AI wants to merge 1 commit into
Conversation
Collaborator
|
Hey, do you mind giving more context for what this is for? |
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.
Closes #566
Summary
Adds three
FeatureProcessorsubclasses wrapping senselab for voice/speech analysis inpyhealth/processors/senselab_processor.py:SenselabVADProcessor— removes non-speech segments, returns speech-only waveform tensorSenselabEGeMAPSProcessor— extracts 88 hand-crafted eGeMAPS acoustic featuresSenselabEmbeddingProcessor— extracts deep neural embeddings via WavLM or ECAPA-TDNNAll three follow the existing
AudioProcessorpattern: lazy imports,ImportErrorwith install hint,process()takes a file path, returns atorch.Tensor. Processors are registered in the processor registry and exported from__init__.py.Tests are in
tests/processors/test_senselab_processor.pyusingpytest.importorskip("senselab")so they skip gracefully in environments where senselab is unavailable.Note on dev environment
senselab>=1.3.0requirestorch>=2.8.0with CUDA libraries (~3GB), which conflicts with available disk space on GitHub Codespaces alongside PyHealth's own dependencies. Local macOS testing is blocked byllvmlite 0.47requiring LLVM 20 while Homebrew ships LLVM 22. Happy to test in a larger environment if maintainers can advise on the recommended dev setup for audio dependencies.