开发者

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

开发者 https://www.devze.com 2023-01-22 20:42 出处:网络
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 m

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

精彩评论

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

关注公众号