audiowaveform
audiowaveform copied to clipboard
Is it possible to use the generated data to get the "volume levels" of a track?
As the title says, I am trying to find a way to sample a track and know when there is sound (and its amplitude) and when there is silence?
The goal is to have something like the Decibel value (or something similar) that I can use to make an activity viewer.
I tried using the values directly (their absolute value) and making a ratio (dividing it by the max value = 16384) but the result wasn't matching the effective audio.
I also tried to convert it to relative DB with DB = 20 * log10(ampl / MAX_AMPL_)
but that worked even more poorly.
Any clue? Am I approaching this incorrectly?
Sorry for taking so long to reply. Did you find a solution?
Hi I'm interested into same topic! some alternative?