audio-trim-cli
v0.1.2
Published
Trim leading and trailing silence from WAV files
Readme
📦 Installation
Use without installing npx audio-trim input.wav output.wav
Install locally in a project npm install audio-trim-cli
Then:
To trim a single file, run
npx audio-trim input.wav output.wav
To trim a single file with a given threshold, run
npx audio-trim input.wav output.wav --threshold-db=-40
Note !! Silence threshold in dBFS (0 dBFS = max). More negative = less aggressive. Examples: -30 (more trim), -40 (default-ish), -50 (gentle).
