Python的阅读麦克风 [英] Python read microphone
本文介绍了Python的阅读麦克风的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从我的麦克风使Python抓取数据,我想打一个随机数发生器将使用噪声它。
所以基本上我不想录制的声音,而是在读到它作为一个数据文件,而是实时的。
I am trying to make python grab data from my microphone, as I want to make a random generator which will use noise from it. So basically I don't want to record the sounds, but rather read it in as a datafile, but realtime.
我知道,LabVIEW能够做到这一点,但我不喜欢的框架,并想获得在蟒蛇更好。
I know that Labview can do this, but I dislike that framework and am trying to get better at python.
任何帮助/提示吗?
推荐答案
您可以用的 PyAudio 。我想你可以从流得到一些字节。
You may be interested by PyAudio. I think you can get some bytes from the stream.
下面是一个有趣的例子
这篇关于Python的阅读麦克风的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文