Microphone Access in Python

My laptop has a microphone. Is there a way to get numbers in Python? For example, step, volume or duration of noise. I am trying to use ambient noise to create random numbers.

+3
source share
1 answer

Access to amplitude is easy. Depending on the platform the application is running on, you can use a framework like http://people.csail.mit.edu/hubert/pyaudio/ or http://pyalsaaudio.sourceforge.net/pyalsaaudio.html

to access the pitch you will need a framework that performs fft analysis, such as the scipy / numpy package

+1
source

Source: https://habr.com/ru/post/1750965/


All Articles