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") }