开发者

How do I do mathematical analysis on microphone audio information from pyaudio?

I am trying to obtain the pitch, the level, and other stuff from my mi开发者_运维知识库crophone 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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜