0
votes

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.

2
Which math library are you trying to use? What exactly is going wrong? - tdammers
When you did this search, what did you find? stackoverflow.com/search?q=%5Bpython%5D+audio+processing - S.Lott

2 Answers

0
votes

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 ...

0
votes

You can use the standard Python module audioop to determine the power/loudness of an audio sample, with the audioop.rms function.