I am trying to obtain the pitch, the level, and other stuff from my microphone using Python. I am trying using pyaudio, but I read that I need to use other libraries to generate the maths. I can’t find how mix pyaudio with the math library.
Asked
Active
Viewed 982 times
0
-
Which math library are you trying to use? What exactly is going wrong? – tdammers Nov 02 '10 at 08:43
-
When you did this search, what did you find? http://stackoverflow.com/search?q=%5Bpython%5D+audio+processing – S.Lott Nov 02 '10 at 10:00
-
possible duplicate of [Good Sound processing/Analysis/Capturing Modules](http://stackoverflow.com/questions/519851/good-sound-processing-analysis-capturing-modules) – S.Lott Nov 02 '10 at 10:01
2 Answers
0
You can use the standard Python module audioop
to determine the power/loudness of an audio sample, with the audioop.rms
function.

John Wiseman
- 3,081
- 1
- 22
- 31
0
I have performed basic signal processing (FFT etc) using numpy/scipy directly on the audio buffer without too much trouble. Be careful, you need to tell numpy about the buffer type: float or int, long or short, signed/unsigned ...

drxzcl
- 2,952
- 1
- 26
- 28