Python read microphone
Asked Answered
C

2

6

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?

Courier answered 1/2, 2013 at 8:40 Comment(0)
R
7

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

Here is an interesting example

Reverend answered 1/2, 2013 at 9:15 Comment(0)
L
0

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.

Lazarus answered 5/12, 2016 at 6:6 Comment(1)
The OP doesn't want to record speech, they want to use audio as a source of random data.Whitlow

© 2022 - 2024 — McMap. All rights reserved.