Python read microphone

Coolcrab picture Coolcrab · Feb 1, 2013 · Viewed 18.1k times · Source

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?

Answer

luc picture luc · Feb 1, 2013

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

Here is an interesting example