broadcast_audio

Broadcast-Clean an Audio File

Description

The standard broadcast chain: a high-pass to kill rumble, optional 60/120/180 Hz hum notches plus FFT denoise, a 4:1 compressor, loudness normalisation to target_lufs, and short in/out fades.

Usage

broadcast_audio(input, output, dehum = TRUE, target_lufs = -14, fade = 0.06,
                highpass = 80, overwrite = TRUE, dry_run = FALSE)

Arguments

  • input: Path to input audio (or A/V) file.
  • output: Path for output file.
  • dehum: Apply the 60/120/180 Hz hum notches + FFT denoise (default TRUE).
  • target_lufs: Integrated loudness target in LUFS (default -14).
  • fade: In/out fade length in seconds (default 0.06).
  • highpass: High-pass corner frequency in Hz (default 80).
  • overwrite: If TRUE (default), overwrite output file.
  • dry_run: If TRUE, return the FFmpeg command without executing.

Value

Invisibly returns the output path. If dry_run, returns command string.

Examples

broadcast_audio("raw.wav", "clean.wav")
broadcast_audio("take.wav", "clean.wav", dehum = FALSE, target_lufs = -16)