I want to record sound (voice) using PortAudio (PyAudio) and output the corresponding sound wave on the screen. Hopeless as I am, I am unable to extract the frequency informatio
What you want is probably the Fourier transform of the audio data. There is several packages that can calculate that for you. scipy
and numpy
is two of them. It is often named "Fast Fourier Transform" (FFT), but that is just the name of the algorithm.
Here is an example of it's usage: https://svn.enthought.com/enthought/browser/Chaco/trunk/examples/advanced/spectrum.py