vocalpy.signal.energy#
Functions that compute the energy of a signal.
Functions in vocalpy.segment call these
functions to get a framewise measurement of energy
in an audio signal. The frame is typically
a fixed-size audio window, or a set of acoustic
features computed from such a window, such as a
single spectrum in an STFT or some other
set of acoustic features.
Notes
We use the term energy because these functions are used for energy-based segmentation, as defined in [1], or energy-based detections, as discussed in [2].
You may also see terms like amplitude, as in “amplitude thresholding*, or envelope. Strictly speaking, the best term might be “energy spectral density” or “power spectral density” [3].
References
Kemp, T., Schmidt, M., Whypphal, M., & Waibel, A. (2000, June). Strategies for automatic segmentation of audio data. In 2000 ieee international conference on acoustics, speech, and signal processing. proceedings (cat. no. 00ch37100) (Vol. 3, pp. 1423-1426). IEEE.
Araya‐Salas, M., Smith‐Vidaurre, G., Chaverri, G., Brenes, J. C., Chirino, F., Elizondo‐Calvo, J., & Rico‐Guevara, A. (2023). ohun: An R package for diagnosing and optimizing automatic sound event detection. Methods in Ecology and Evolution, 14(9), 2259-2271.
Functions
|
Compute spectral power using algorithm from |
|
Convert audio to a Root-Mean-Square-like trace. |