Skip to content Skip to sidebar Skip to footer

Calculating The Average Amplitude Of An Audio File Using Fft In Javascript

I am currently involved in a project in which I want to find the average amplitude for given audio data in any given AAC file. I am currently reading the file as an array buffer an

Solution 1:

You really don't need to use an FFT for this - Parseval's theorem essentially means that energy in the time domain is equal to energy in the frequency domain, so the FFT part is redundant - you can just calculate amplitude in the time domain. Typically this is done by calculating the RMS value of the signal over a chosen time window (the length of this time window depends on what you are trying to achieve).


Post a Comment for "Calculating The Average Amplitude Of An Audio File Using Fft In Javascript"