selfclean_audio.datasets.csem#
Members
CSEM Membrane Pump Audio Dataset loader. |
- class selfclean_audio.datasets.csem.CSEMMembranePumps(root: str | Path, convert_mono: bool = True, sample_rate: int = 16000, target_duration_sec: float | None = None, index_file: str | Path = 'index.csv', files_dir: str | Path = 'files')[source]#
CSEM Membrane Pump Audio Dataset loader.
Expects the following structure under
root(seedata/CSEM/README.md):root/ files/ {guid}.wav ... index.csv # columns: id, filename, label
The dataset returns tuples of (waveform, absolute_path, label).
noisy_labelis not known and will be set by the synthetic/noise wrappers when applicable, otherwise considered 0 by downstream code.