You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: