Elucid
DIAdiscord.js - Imagine an app
•Created by kriskotooBG on 1/13/2024 in #djs-voice
Volume normalization
I did this a while ago decoding to PCM using prism media, but now I recommend something lighter and more updated like the @Evan/opus module
Then, would calculate the root mean square value of each buffer of pcm audio and see if it was higher than fixed amplitude, then modify the volume accordingly
This attempt worked in theory but it wasn’t really good, hopefully it gives you some ideas tho
10 replies