Determine If player Is Shouting into microphone

I was not really sure how to word that so hopefully the title is clear??
But basically I’m wondering if there is a simple way to set up a bool something like:

public bool playerIsShouting = false;

And then check the microphone volume through a float or integer so that if the microphone volume input is very loud I can have an audio clip play that says “There is no need to shout !”

http://stackoverflow.com/questions/37443851/unity3d-check-microphone-input-volume