Python read microphone

房东的猫 提交于 2019-12-10 04:32:11

问题


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.

I know that Labview can do this, but I dislike that framework and am trying to get better at python.

Any help/tips?


回答1:


You may be interested by PyAudio. I think you can get some bytes from the stream.

Here is an interesting example




回答2:


u can refer speech_recognition module or PyAudio module for recording speech.I used PyAudio module with Microsoft cognitive service.It worked fine for me.



来源:https://stackoverflow.com/questions/14642443/python-read-microphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!