Python 中的延迟和波束形成
我正在尝试使用 4 个麦克风阵列实现一个简单的延迟总和波束形成器。我现在正在使用 MATLAB,它有一个内置的信号处理工具包,非常有用。我想知道Python中有没有这样的工具。首先,我想知道如何从麦克风实时获取音频信号,并有一个连续的绘图作为初步输出。
I am trying to implement a simple delay-sum beamformer using a 4 Microphone Array. I am using MATLAB at the moment, which has an inbuilt Signal Processing toolkit that is quite helpful. I was wondering if there are such tools in Python. For starters, i want to know how to get an audio signal from a microphone in real time and have a continuous plot as a preliminary output.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 pyAudio 你可以实时获取麦克风的音频信号。
http://people.csail.mit.edu/hubert/pyaudio/
进行绘图它,您可以使用 matplotlib 或 Chaco:
Chaco 有一个使用 pyAudio 并绘制音频信号频谱的示例:
https://github.com/enthought/chaco/blob/master /examples/demo/advanced/spectrum.py
use pyAudio you can get the audio signal from mic in real time.
http://people.csail.mit.edu/hubert/pyaudio/
to plot it, you can use matplotlib or Chaco:
Chaco has an example that use pyAudio and plot the spectrum of the audio signal:
https://github.com/enthought/chaco/blob/master/examples/demo/advanced/spectrum.py