From 8785b14464cf7256e8c54abbcc83b5adfd8d6196 Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Sat, 12 Jul 2025 11:29:09 +0300 Subject: [PATCH] use some filters to make it sound better --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index cb08835..14db130 100644 --- a/index.ts +++ b/index.ts @@ -30,7 +30,7 @@ app.post("/youtube", async (c) => { if (!video) throw new Error("No video found"); console.log(video) await $`${ytdlpPath} --audio-format opus -x ${video.url} -o test`; - await $`ffmpeg -i test.opus -ar 48000 -ac 1 -f dfpwm "cache/${title} - ${artist}.dfpwm"`; + await $`ffmpeg -i test.opus -af "highpass=f=60, lowpass=f=15000, dynaudnorm" -ar 48000 -ac 1 -f dfpwm "cache/${title} - ${artist}.dfpwm"`; rmSync("test.opus") }