[Ops] Trim silence before transcription (VAD) to cut Whisper time and cost #101
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The bot uploads per-speaker WAV tracks that are silence-padded to full session length so all tracks share one timeline. The backend's audio processing task (
webapp/backend/app/tasks/reminder_tasks.py, transcribe path around:1475-1610, Whisper endpoint config at:1592-1608) sends each full-length track to Whisper.Motivation
Transcribing N speakers costs ≈ N × the session's wall-clock minutes of audio, even though each speaker talks only a fraction of the time. In a 5-person 4-hour session that's ~20 hours of audio, most of it silence — the dominant compute cost for self-hosted Whisper on the GPU server and the dominant dollar cost for any hosted transcription.
Fix / Spec
silencedetecton the WAV is the zero-new-dependency option;silero-vadorwebrtcvadacceptable alternatives).:1475)."VAD trimmed 14.2h → 3.1h of audio".Acceptance criteria
References
webapp/backend/app/tasks/reminder_tasks.py:1475-1610(transcribe path),:1592-1608(Whisper config/endpoint call)Filed from the July 2026 full-project review.