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