Skip to content

Instantly share code, notes, and snippets.

@BenAlthauser
BenAlthauser / remove_silence.ts
Created March 6, 2022 03:28 — forked from smashah/remove_silence.ts
A simple way to remove silences below a certain threshold in an audio file [NODEJS/TS]
//add this to your package.json
// "audio-buffer-utils": "^5.1.2",
// "audio-decode": "^1.4.0",
// "audiobuffer-to-wav": "^1.0.0",
// "node-lame": "^1.2.0",
// "ogg.js": "^0.1.0",
// "opus.js": "^0.1.1",
const fs = require('fs');