Sharpchain
Posts: 2
Joined: Sat Mar 18, 2017 5:39 am

How to get how loud microphone input is.

Sat Mar 18, 2017 5:49 am

So I am making a speech recognition thing. So far I have gotten that part to work but now I want it to start recording audio when the microphone starts picking up louder sounds. I was wondering if anyone could tell me how I can read the loudness of the live feed on the microphone. Im using a usb microphone and I have raspberry pi 3. I know that it is possible to do this kinda thing because if you tell the pi to record audio using this line of code

Code: Select all

arecord -D plughw:1 --duration=10 -vv ~/Test.wav
at the very bottom it will show a percentage of how loud the sound of the microphone is that its picking up. Ik its not an exact measurment in decibals or anything but I would like to be able to measure the sound like that. Can anyone help me out? thanks

Sharpchain
Posts: 2
Joined: Sat Mar 18, 2017 5:39 am

Re: How to get how loud microphone input is.

Sun Mar 19, 2017 3:08 am

can anyone help me please?

klintkrossa
Posts: 81
Joined: Tue Nov 10, 2015 3:06 pm

Re: How to get how loud microphone input is.

Sun Mar 19, 2017 6:21 pm

Hello,
I found this,
https://pypi.python.org/pypi/webrtcvad
The ham radio would use VOX, form that I found VAD. Voice Activated Detector.
Thanks
This is not like any other bulletin boards that I have been on. Been flamed on other BB's so bad I was afraid to ask.

All my Raspberry Pi's are like the Hessian artilleryman of Sleepy Hollow.

Return to “Python”