v0.0.1
Initial Release
Pure Dart library to detect pops and clicks in WAV audio files using adaptive threshold analysis.
Features
- Detect clicks (1–10 samples) and pops (10–150 samples) in WAV audio
- Adaptive MAD-based threshold with configurable sensitivity (low/medium/high)
- Support for PCM 8/16/24/32-bit and IEEE Float 32-bit WAV files
- Raw PCM byte analysis via
analysePcm()withPcmFormatdescriptor - Pre-normalised sample analysis via
analyseSamples()for integration with other decoders - Per-channel or mono-summed analysis
- Confidence scoring with logistic function
- Public
median()andmad()statistical utilities - CLI tool with text and JSON output, glob support, batch processing, and raw PCM mode
- Pure Dart — no native dependencies, works on all platforms
CLI Usage
dart pub global activate audio_defect_detector
audiodefect analyse recording.wav --sensitivity=high --output=json
audiodefect analyse decoded.raw --raw --sample-rate=44100 --bit-depth=16 --channels=2Library Usage
import 'package:audio_defect_detector/audio_defect_detector.dart';
final result = await analyseFile('recording.wav');
print('Found ${result.defects.length} defects');