Requires Chrome browser
Click to permit the microphone to be used
When the window goes grey it is not listening and is in idle. Click anywhere on the grey to reactivate it
The Javascript is all on
Github
if you want to have a go at adapting the code