Fast spectral analysis of an audio file using Python 2.6?

What I want to do is a routine that analyzes every 200 milliseconds of the sound file that it sets, and splashes the intensity value (from 0 to 1 as a float) of a certain frequency range into an array that I will save later. This value will then be used as the opacity value for the graphic object that needs to be "gated" into the audio file.

The problem is that I have never considered audio analysis before and don’t know where to start. I looked at pymedia and scipy / numpy, thinking that I could use FFT to achieve this, but I'm not quite sure how I will manipulate this data to ultimately achieve the desired result. The documentation on the SpectrAnalyzer pymedia class practically does not exist, and the examples on the website do not actually work with the latest version of the library, which does not completely make my life easier.

How can I start this project? I will completely lose which libraries I should use.

+3
source share
1 answer

, , Scipy FFT ( ), , Matplotlib . . Python Python.

+3

Source: https://habr.com/ru/post/1749813/


All Articles