How I Built a Local Silence Remover That Processes a 5GB Audio File in Under 6 Minutes
Описание и применение
Создан локальный инструмент VoxCut, удаляющий паузы из больших аудиофайлов без загрузки в память, используя потоковую обработку FFmpeg. Он обрабатывает 5 ГБ за менее чем 6 минут, поддерживая режимы с кросс‑фейдом и быстрым удалением.
Задача
Removing silence from very large audio files (e.g., 5 GB, 72 hours) efficiently on a local machine without exhausting RAM.
Результат
VoxCut achieves 35‑50× real‑time processing in standard mode and 70‑100× in Turbo mode, handling 5 GB files in under 6 minutes on ordinary hardware.
Рабочий процесс
- 1. Load audio file via FFmpeg in streaming mode.
- 2. Scan waveform segments and compare amplitude to a decibel threshold with a minimum pause duration.
- 3. Preview cuts before deletion to allow user confirmation.
- 4. Export: standard mode stitches segments with crossfades; Turbo mode removes silence in a single pass for faster processing.
- 5. For Android, adapt storage limits and feature gating while maintaining 100% local processing.
Доказательства
VoxCut instead runs a local, FFmpeg-based streaming pass over the file rather than materializing the whole thing in memory.
A 72-hour, 5GB file was processed in under 6 minutes on ordinary consumer hardware.
- Дата записи: 2026-09-15T17:45:27.988Z