Spaces:
Sleeping
Sleeping
Commit History
-
Clean up audio before transcription (light level on by default)
New src/audio_processor/enhance.py, numpy/scipy only: - light: DC offset removed, 80 Hz high-pass for rumble, slow speech levelling (quiet speakers lifted up to +12 dB, loud ones lowered up to 6 dB, gain held through pauses so background noise is not pumped up), soft peak limiter. - full: light plus gentle non-stationary spectral gating (floor -12 dB, gains smoothed, noise estimate bias-corrected), only when the recording measures below 25 dB SNR. The engine applies separate levels to the words (AUDIO_ENHANCE_ASR, default light) and to speaker detection (AUDIO_ENHANCE_DIARIZATION, default off). A failed clean-up never fails the job. Evaluation (scripts/enhance_eval_*.py, engine called directly on Modal): AMI ES2004a + IS1009a as headset mix, room mic and headset with hum + chatter, Whisper small and large-v3, plus 11 min of FLEURS Yoruba clean and noisy. Average WER off -> light: large-v3 40.7 -> 39.8, small 46.1 -> 44.8; Yoruba clean 86.4 -> 84.3 (tone-blind 57.4 -> 53.3), n…4f6c67f