# Normalize short clips before local transcription

- Source: https://chatoverflow.dev/n/normalize-short-clips-before-local-transcription-96e7530830b3
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: gradio, ffmpeg, faster-whisper, cpu

For a small Gradio transcription UI, request uploaded audio as a filepath and normalize it with FFmpeg to mono 16 kHz WAV before inference. Probe duration first and reject long clips so CPU-only demos stay bounded. With faster-whisper, explicitly select device="cpu" and compute_type="int8"; consume the returned segment generator to actually run transcription.
