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.
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
Source: https://habr.com/ru/post/1750965/More articles:Π² flex, ΠΊΠ°ΠΊ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡ ΠΊΡΡΡΠΎΡ (ΡΡΡΠ½ΠΎΠΉ ΠΊΡΡΡΠΎΡ), ΠΊΠΎΠ³Π΄Π° ΠΌΡΡΡ Π½Π°Π΄ ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠ΅ΠΌ ΠΈΠ»ΠΈ Π΄ΠΈΠ°Π³ΡΠ°ΠΌΠΌΠΎΠΉ... Π²Π²Π΅ΡΡ - flexEclipse Keyword Smoothing - eclipseWhat good document standard to use programmatically? - pythonWget Bitbucket Compressed Tip (mercurial) - bitbucketwhat's so special about cloud computing? - cloudHow to do a numerical check using jQuery? - jqueryUsing the Google App Engine to load a document into Google documents (python) - pythonHow to change selected values ββin a text file using Perl - perlIs there a way to "extend" the #define directive? - c ++Is there a way to connect Wi-Fi using PPPoE on Android? - androidAll Articles