I need to reconstruct the envelope of a sound.
Audio data are professionally-recorded natural sounds (speech, bird songs) with very little noise. I would prefer working in the time domain rather than in the frequency domain (I've seen some algorithms based on FFT transformations that looked overcomplicated for what I need). The algorithm will be implemented in an interpreted language so it needs to stay "light" in computation.
As a first approach, I considered using a peak detection algorithm, then doing a linear interpolation between the peaks. But isn't there some pitfalls with such a naive approach? Are there some standard ways of implementing envelope reconstruction in the time domain that would better suit my needs?
FWIW, I'm not familiar with digital signal processing vocabulary, so do not hesitate to reword my question if I misused some terms
FIR
filters are easy to implement in the time domain. $\endgroup$