'Python read volume of each tone fro audio file

I am trying to build some sort of ai using python which need to analyse the volume of speak and not only the frequencies. I was able to get arrays of frequencies from the audio file easily using audio libraries . But I didn't found a way to get the volume of each frueancy , I also tried to use the sound card for getting the electrical pulses but then I will have to calculate the the frueancy by my self . So I wondered if there is easy way to get this from the audio file it self , the format is doesn't matter to me



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source